From f7aa474f0faf3c7f3ccac42c8237fa880d328b6e Mon Sep 17 00:00:00 2001 From: Raz Date: Wed, 2 Apr 2025 09:09:03 +0200 Subject: [PATCH] update position / rank in tournament row --- tournaments/models/player_registration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tournaments/models/player_registration.py b/tournaments/models/player_registration.py index aa0c4bf..a63382f 100644 --- a/tournaments/models/player_registration.py +++ b/tournaments/models/player_registration.py @@ -118,9 +118,9 @@ class PlayerRegistration(SideStoreModel): # Tournament is ended with results if tournament.get_online_registration_status() is OnlineRegistrationStatus.ENDED_WITH_RESULTS: - if team.get_final_ranking_component(): + if team.final_ranking: status['header'] = 'Rang' - status['position'] = f"{team.get_final_ranking_component()} / {tournament_status_team_count}" + status['position'] = f"{team.final_ranking} / {tournament_status_team_count}" if tournament.display_points_earned and team.points_earned: if team.final_ranking == 1: