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

Commit 77870c5

Browse files
committed
Fix status when no grade
1 parent 119952e commit 77870c5

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
@@ -588,7 +588,10 @@ def update_submit():
588588
res["success"] = True
589589
# if can't find grades table for current user, return no success
590590
else:
591-
res["success"] = False
591+
db.grades.insert(
592+
auth_user=auth.user.id, assignment=assignment_id, is_submit=is_submit
593+
)
594+
res["success"] = True
592595

593596
return json.dumps(res)
594597

0 commit comments

Comments
 (0)