Fix summons

clubs
Laurent 2 years ago
parent 7c25c80b63
commit 14cb9abe65
  1. 4
      tournaments/models/team_registration.py

@ -42,8 +42,8 @@ class TeamRegistration(models.Model):
matches = [m for m in all_matches if m.end_date is None]
if matches:
return matches[0]
elif all_matches:
return all_matches[0]
else:
return None
def next_stage(self):
matches = map(lambda ts: ts.match, self.teamscore_set.all())

Loading…
Cancel
Save