Skip to content

Commit

Permalink
Update 2023 to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Deee92 committed Aug 15, 2024
1 parent 55a5b7d commit 29120d7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/assignment-statistics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Triggers the workflow on push or pull request events but only for the 2021 branch
push:
branches:
- "2023"
- "2024"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Check task
on:
pull_request_target:
branches:
- 2023
- 2024
paths:
- contributions/**

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_criteria.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Grading criteria
on:
push:
branches:
- 2023
- 2024
paths:
- 'grading-criteria.md'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Update task
on:
push:
branches:
- 2023
- 2024
paths:
- contributions/**

Expand Down
4 changes: 2 additions & 2 deletions tools/missing_grade.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
DEADLINE = 0
CANVAS_TOKEN = ''
CANVAS_URL = "https://canvas.kth.se"
CANVAS_COURSE_ID = 38951 # 2023 edition
CANVAS_COURSE_ID = 48942 # 2024 edition
CONTRIBUTION_PATH = '../contributions'


Expand Down Expand Up @@ -58,7 +58,7 @@ def get_group_members(id_group):


def grader(url):
url = url.replace("/2023/","/2022/")
url = url.replace("/2024/","/2023/")
graders = json.load(open("graders.json"))
n= zlib.adler32(url.encode("utf-8"))%len(graders)
return graders[n]
Expand Down

0 comments on commit 29120d7

Please sign in to comment.