bracket-feature
laurent 11 months ago
commit 788a60e1ed
  1. 2
      tournaments/models/tournament.py

@ -938,6 +938,7 @@ class TeamSummon:
class TeamItem: class TeamItem:
def __init__(self, team_registration): def __init__(self, team_registration):
self.names = team_registration.team_names() self.names = team_registration.team_names()
self.date = team_registration.local_call_date()
self.registration_date = team_registration.registration_date self.registration_date = team_registration.registration_date
self.weight = team_registration.weight self.weight = team_registration.weight
self.initial_weight = team_registration.initial_weight() self.initial_weight = team_registration.initial_weight()
@ -953,6 +954,7 @@ class TeamItem:
def to_dict(self): def to_dict(self):
return { return {
"names": self.names, "names": self.names,
"date": self.date,
"registration_date": self.registration_date, "registration_date": self.registration_date,
"weight": self.weight, "weight": self.weight,
"initial_weight": self.initial_weight, "initial_weight": self.initial_weight,

Loading…
Cancel
Save