Skip to content

Commit b754fac

Browse files
committed
fix wr stuff maybe
1 parent e62c38e commit b754fac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

highscores/lib.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,14 @@ def approve_score(score_obj: Score, prev_submissions, time_data_issue=None):
352352
code_obj.ip = score_obj.ip
353353
code_obj.save()
354354

355+
# Send webhook notification if this is a new world record
356+
if is_world_record:
357+
send_world_record_webhook(score_obj, current_world_record)
358+
359+
# Send time data warning email if there are issues
360+
if time_data_issue:
361+
send_time_data_warning_email(score_obj, time_data_issue)
362+
355363

356364
def submission_screenshot_check(score_obj: Score) -> Union[str, None]:
357365
""" Checks if the submission has a screenshot and if it is valid.

0 commit comments

Comments
 (0)