Skip to content

Commit

Permalink
Models: Fix Tournament.award_number()
Browse files Browse the repository at this point in the history
  • Loading branch information
UEWBot committed Feb 10, 2025
1 parent e96efbb commit e17e8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visualiser/tournament/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def award_number(self, award):
for i, a in enumerate(self.awards.filter(power=None), 1):
if a == award:
return i
raise AssertionError(f'award {award} not found in {tournament}')
raise AssertionError(f'award {award} not found in {self}')

def _calculated_scores(self, for_players=None):
"""
Expand Down

0 comments on commit e17e8b7

Please sign in to comment.