fix(lms): template rendering for IN_PROGRESS submissions and needs_start logic

This commit is contained in:
Dmitry Belan
2026-09-20 18:02:33 +03:00
parent b3e9d9ae18
commit f15a584ddc
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -74,8 +74,9 @@ def assignment_detail(request, pk):
if assignment.time_limit:
if not submission:
needs_start = True
can_submit = False # Can't submit until started
if can_submit:
needs_start = True
can_submit = False # Can't submit until started
elif submission.status == 'IN_PROGRESS':
if submission.started_at:
elapsed = (now - submission.started_at).total_seconds()