forked from JOJ/Joint-Teapot
fix: LATE SUBMISSION to grade file
This commit is contained in:
parent
3d18d5c6f7
commit
74cedc3f5b
|
@ -78,7 +78,7 @@ class Canvas:
|
||||||
if segments[1] == "late":
|
if segments[1] == "late":
|
||||||
# TODO: check the delay time of late submission
|
# TODO: check the delay time of late submission
|
||||||
if create_grade_file:
|
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):
|
if os.path.exists(grade_file_path):
|
||||||
open(grade_file_path, mode="a").write("LATE SUBMISSION\n")
|
open(grade_file_path, mode="a").write("LATE SUBMISSION\n")
|
||||||
late_students.add(student)
|
late_students.add(student)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user