|
|
|
@ -1525,7 +1525,13 @@ class Tournament(BaseModel): |
|
|
|
if is_woman is not None and self.federal_category == FederalCategory.WOMEN and is_woman is False: |
|
|
|
if is_woman is not None and self.federal_category == FederalCategory.WOMEN and is_woman is False: |
|
|
|
reasons.append("Ce tournoi est réservé aux femmes") |
|
|
|
reasons.append("Ce tournoi est réservé aux femmes") |
|
|
|
|
|
|
|
|
|
|
|
if birth_year is None: |
|
|
|
if birth_year is None or birth_year == 'N/A': |
|
|
|
|
|
|
|
return reasons if reasons else None |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
|
|
tournament_start_year = self.season_year() |
|
|
|
|
|
|
|
user_age = tournament_start_year - int(birth_year) |
|
|
|
|
|
|
|
except (ValueError, TypeError): |
|
|
|
return reasons if reasons else None |
|
|
|
return reasons if reasons else None |
|
|
|
|
|
|
|
|
|
|
|
tournament_start_year = self.season_year() |
|
|
|
tournament_start_year = self.season_year() |
|
|
|
|