diff --git a/tournaments/models/match.py b/tournaments/models/match.py index 5f63ad6..92b6046 100644 --- a/tournaments/models/match.py +++ b/tournaments/models/match.py @@ -360,7 +360,6 @@ class Team: def to_dict(self): return { - "id": self.id, "image": self.image, "names": self.names, "scores": self.scores, diff --git a/tournaments/models/tournament.py b/tournaments/models/tournament.py index 68c45e6..cc9d175 100644 --- a/tournaments/models/tournament.py +++ b/tournaments/models/tournament.py @@ -1206,7 +1206,7 @@ class MatchGroup: class TeamSummon: def __init__(self, id, names, date, weight, stage, court, image, day_duration): - self.id = id + self.id = str(id) self.names = names self.date = date self.weight = weight @@ -1226,7 +1226,6 @@ class TeamSummon: def to_dict(self): return { - "id": self.id, "names": self.names, "date": self.formatted_date(), "weight": self.weight, @@ -1266,7 +1265,7 @@ class TeamItem: class TeamRanking: def __init__(self, id, names, ranking, points, image): - self.id = id + self.id = str(id) self.names = names self.ranking = ranking self.formatted_ranking = self.ordinal(ranking) @@ -1288,7 +1287,6 @@ class TeamRanking: return '' def ordinal(self, n): - suffixes = {1: 'er', 2: 'ème', 3: 'rd'} if n == 1: suffix = 'er' else: @@ -1297,7 +1295,6 @@ class TeamRanking: def to_dict(self): return { - "id": self.id, "names": self.names, "ranking": self.ranking, "formatted_ranking": self.formatted_ranking,