Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions exercise/async_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def _post_async_submission(request, exercise, submission, errors=None): # pylint
submission.set_ready()
submission.save()

if form.cleaned_data["notify"]:
if form.cleaned_data["notify"] == "remove":
Notification.remove(submission)
elif form.cleaned_data["notify"]:
regrade_when_notification_seen = form.cleaned_data["regrade_when_notification_seen"]
Notification.send(None, submission, regrade_when_seen=regrade_when_notification_seen)
else:
Notification.remove(submission)

# If the submission was made through LTI, send results back to the platform.
if submission.lti_launch_id:
Expand Down
Loading