Skip to content

Commit

Permalink
add unintentionally removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thremilien committed Aug 23, 2024
1 parent 782c85c commit 286b0ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inginious/frontend/pages/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def GET(self, courseid, taskid, is_LTI):
previous_taskid = None
next_taskid = None
else:
# Compute previous and next taskid
index = ordered_task_list.index(taskid)
previous_taskid = ordered_task_list[index - 1] if index > 0 else None
next_taskid = ordered_task_list[index + 1] if index < len(ordered_task_list) - 1 else None
Expand Down

0 comments on commit 286b0ec

Please sign in to comment.