|
|
|
|
@ -299,7 +299,7 @@ class Tournament(models.Model): |
|
|
|
|
# print(f"Is valid: {is_valid}") |
|
|
|
|
|
|
|
|
|
if team_registration.walk_out is False: |
|
|
|
|
team = TeamList(team_registration) |
|
|
|
|
team = TeamItem(team_registration) |
|
|
|
|
# print(f"Created team: {team}") |
|
|
|
|
if team_registration.group_stage_position is not None: |
|
|
|
|
team.set_stage("Poule") |
|
|
|
|
@ -884,10 +884,10 @@ class TeamSummon: |
|
|
|
|
"image": self.image, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class TeamList: |
|
|
|
|
class TeamItem: |
|
|
|
|
def __init__(self, team_registration): |
|
|
|
|
self.names = team_registration.team_names |
|
|
|
|
self.date = team_registration.call_date |
|
|
|
|
self.date = team_registration.local_call_date() |
|
|
|
|
self.weight = team_registration.weight |
|
|
|
|
self.initial_weight = team_registration.initial_weight() |
|
|
|
|
self.image = team_registration.logo |
|
|
|
|
|