remove logs

sync_v2
Laurent 8 months ago
parent de79174f4d
commit 85d1f54e13
  1. 6
      tournaments/models/team_registration.py
  2. 4
      tournaments/models/tournament.py

@ -177,9 +177,9 @@ class TeamRegistration(SideStoreModel):
def get_matches(self):
matches = Match.objects.filter(team_scores__team_registration=self).distinct()
print(f"All matches for team {self.id}: {matches.count()}")
for match in matches:
print(f"Match {match.id}: start_date={match.start_date}, end_date={match.end_date}")
# print(f"All matches for team {self.id}: {matches.count()}")
# for match in matches:
# print(f"Match {match.id}: start_date={match.start_date}, end_date={match.end_date}")
return matches
def get_upcoming_matches(self):

@ -278,7 +278,7 @@ class Tournament(BaseModel):
def team_summons(self):
summons = []
if self.supposedly_in_progress() and self.end_date is None:
print('>>> team_summons supposedly_in_progress')
# print('>>> team_summons supposedly_in_progress')
for team in self.teams(False):
names = team.names
stage = team.stage
@ -286,7 +286,7 @@ class Tournament(BaseModel):
summon = TeamSummon(team.team_registration.id, names, team.date, weight, stage, "", team.image, self.day_duration)
summons.append(summon)
else:
print('>>> team_summons')
# print('>>> team_summons')
for team_registration in self.team_registrations.all():
if team_registration.is_valid_for_summon():
next_match = team_registration.next_match()

Loading…
Cancel
Save