From 2c34296a5ed922c406fa66ba3d5cb9285e394bf4 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Thu, 4 Sep 2025 19:33:18 +0200 Subject: [PATCH] Add short name support for animation tournaments --- tournaments/models/tournament.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index b2aa542..a9a0566 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -167,6 +167,10 @@ class Tournament(BaseModel): return str def short_full_name(self): + # For animation tournaments with custom names, just return the name + if self.federal_level_category == 0 and self.name: # FederalLevelCategory.UNLISTED (Animation) with custom name + return self.name + age = self.age() str = f"{self.level()}{self.category()[0]}" if age is not None and self.federal_age_category != 200: