From 74cedc3f5ba6d11ec714ac08c0def4eb28ef11c9 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sat, 6 Nov 2021 18:43:06 +0800 Subject: [PATCH] fix: LATE SUBMISSION to grade file --- joint_teapot/workers/canvas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joint_teapot/workers/canvas.py b/joint_teapot/workers/canvas.py index f9a77c8..00896a8 100644 --- a/joint_teapot/workers/canvas.py +++ b/joint_teapot/workers/canvas.py @@ -78,7 +78,7 @@ class Canvas: if segments[1] == "late": # TODO: check the delay time of late submission if create_grade_file: - grade_file_path = os.path.join(path, self.grade_filename) + grade_file_path = os.path.join(target_dir, self.grade_filename) if os.path.exists(grade_file_path): open(grade_file_path, mode="a").write("LATE SUBMISSION\n") late_students.add(student)