Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 86ad4f5

Browse files
committed
Better Fix
1 parent 58351b8 commit 86ad4f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

controllers/assignments.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,10 @@ def chooseAssignment():
981981
else:
982982
status.append("")
983983
score.append("Not Graded")
984-
ontime.append("")
984+
if deadline > datetime.datetime.utcnow():
985+
ontime.append(True)
986+
else:
987+
ontime.append(False)
985988

986989
# Convert the duedate for current assignment to string
987990
duedates.append(date2String(deadline))

0 commit comments

Comments
 (0)