fix(lms): template rendering for IN_PROGRESS submissions and needs_start logic
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user