fix: LATE SUBMISSION to grade file

This commit is contained in:
张泊明518370910136 2021-11-06 18:43:06 +08:00
parent 3d18d5c6f7
commit 74cedc3f5b
No known key found for this signature in database
GPG Key ID: FBEF5DE8B9F4C629

View File

@ -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)