Skip to content

Commit

Permalink
No send, if no admin or application count == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
aapris committed Nov 4, 2024
1 parent 0b7dc39 commit 5acef6d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ def handle(self, *args, **options):
exit(1)
doc_link = doc_dict[application_round_id]
ar = ApplicationRound.objects.get(name__startswith=application_round_id)
if ar.applications.count() == 0:
print(f"Application round {application_round_id} has no applications")
exit(1)
if ar.admin is None:
print(f"Application round {application_round_id} has no admin")
exit(1)
ar_admin = ar.admin
ar_jury = ar.evaluators.all()
vars = {
Expand Down

0 comments on commit 5acef6d

Please sign in to comment.