|
|
|
@ -48,17 +48,22 @@ def notify_object_creation_on_discord(created, instance): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def notify_team(team, tournament, message_type): |
|
|
|
def notify_team(team, tournament, message_type): |
|
|
|
#print(team, message_type) |
|
|
|
print(team, message_type) |
|
|
|
if tournament.enable_online_registration is False: |
|
|
|
if tournament.enable_online_registration is False: |
|
|
|
|
|
|
|
print("returning because tournament.enable_online_registration false") |
|
|
|
return |
|
|
|
return |
|
|
|
if team.has_registered_online() is False: |
|
|
|
if team.has_registered_online() is False: |
|
|
|
|
|
|
|
print("returning because team.has_registered_online false") |
|
|
|
return |
|
|
|
return |
|
|
|
if tournament.should_be_over(): |
|
|
|
if tournament.should_be_over(): |
|
|
|
|
|
|
|
print("returning becausetournament.should_be_over") |
|
|
|
return |
|
|
|
return |
|
|
|
if tournament.supposedly_in_progress(): |
|
|
|
if tournament.supposedly_in_progress(): |
|
|
|
|
|
|
|
print("returning because tournament.supposedly_in_progress") |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
if is_not_sqlite_backend(): |
|
|
|
if is_not_sqlite_backend(): |
|
|
|
|
|
|
|
print("is_not_sqlite_backend") |
|
|
|
TournamentEmailService.notify_team(team, tournament, message_type) |
|
|
|
TournamentEmailService.notify_team(team, tournament, message_type) |
|
|
|
|
|
|
|
|
|
|
|
@receiver(pre_delete, sender=TeamRegistration) |
|
|
|
@receiver(pre_delete, sender=TeamRegistration) |
|
|
|
|