From 815eaefd060a6d561af8788487f61eb50c8957c7 Mon Sep 17 00:00:00 2001 From: Deepika Tiwari Date: Thu, 15 Aug 2024 20:17:17 +0200 Subject: [PATCH] Remove essay, add scientific-paper --- .github/pull_request_template.md | 6 ++---- tools/missing_grade.py | 14 +++++++------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 6b755f28e4..5a0d682b73 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -19,15 +19,13 @@ _The title of your proposal_ _Selected deadline for the assignment_ -_If contribution is a **demo** or **presentation** pick one of the following:_ +_If contribution is a **demo** or **presentation** or **scientific-paper** pick one of the following:_ - Week 2 - Week 3 - Week 4 - Week 5 - Week 6 - Week 7 -- Week 8 -- Week 9 _Else pick one of the following:_ - Task 1 @@ -42,7 +40,7 @@ _Pick one of the following:_ - Demo - Presentation - Executable tutorial -- Essay +- Scientific paper - Open source - Feedback diff --git a/tools/missing_grade.py b/tools/missing_grade.py index e23f8b5005..c8b4e29f2d 100755 --- a/tools/missing_grade.py +++ b/tools/missing_grade.py @@ -21,7 +21,7 @@ def task_to_set(task_name, canvas_set): mapping = { #"course-automation": canvas_set["Course automation"], "demo": canvas_set["Demos"], - "essay": canvas_set["Essays"], + "scientific-paper": canvas_set["Scientific Papers"], "executable-tutorial": canvas_set["Executable Tutorials"], "feedback": canvas_set["Feedback"], "opensource": canvas_set["Open-source contributions"], @@ -123,8 +123,8 @@ def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--task', dest='task', type=str, help='Task name', required=True) parser.add_argument('--token', dest='token', type=str, help='Canvas access token', required=True) - parser.add_argument('--week', dest='week', type=str, help='Week folder (ONLY for presentation/demo)') - parser.add_argument('--deadline', dest='deadline', type=int, help='Deadline number (NOT for presentation/demo)') + parser.add_argument('--week', dest='week', type=str, help='Week folder (ONLY for presentation/demo/scientific-paper)') + parser.add_argument('--deadline', dest='deadline', type=int, help='Deadline number (NOT for presentation/demo/scientific-paper)') args = parser.parse_args() TASK = args.task @@ -159,10 +159,10 @@ def check_all_assigned(): #"feedback": canvas_set["Feedback"], #"open-source": canvas_set["Open-source contributions"], #"presentation": canvas_set["Presentations"], } - for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"course-automation").values(): - l.append(i['path']) - for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"essay").values(): - l.append(i['path']) + # for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"course-automation").values(): + # l.append(i['path']) + # for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"essay").values(): + # l.append(i['path']) for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"executable-tutorial").values(): l.append(i['path']) for i in get_sub_directory(CONTRIBUTION_PATH+"/"+"feedback").values():