Skip to content

Commit

Permalink
Update signals.py
Browse files Browse the repository at this point in the history
rename firstblood notification handler
  • Loading branch information
JasonLovesDoggo authored Apr 23, 2024
1 parent 92d4295 commit ae4dd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gameserver/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def construct_discord_payload(submission: ContestSubmission) -> dict:


@receiver(post_save, sender=ContestSubmission, dispatch_uid="notify_contest_firstblood")
async def my_handler(sender, instance, created, raw, using, update_fields, **kwargs):
async def firstblood_notification_handler(sender, instance, created, raw, using, update_fields, **kwargs):
if not created: # only for new submissions
return
if not await instance.ais_firstblooded:
Expand Down

0 comments on commit ae4dd36

Please sign in to comment.