Skip to content

Commit

Permalink
chore: notification creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed May 23, 2024
1 parent 7b9b296 commit 591e7e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/api/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def hook_submission(sender, instance: Submission, created: bool, **kwargs):
run_all_checks.send(sender=Submission, submission=instance)
pass

notification_create.send(
sender=Submission,
type=NotificationType.SUBMISSION_RECEIVED,
queryset=list(instance.group.students.all()),
arguments={}
)
notification_create.send(
sender=Submission,
type=NotificationType.SUBMISSION_RECEIVED,
queryset=list(instance.group.students.all()),
arguments={}
)


@receiver(post_save, sender=DockerImage)
Expand Down

0 comments on commit 591e7e8

Please sign in to comment.