|
|
|
@ -181,6 +181,9 @@ class TeamRegistration(SideStoreModel): |
|
|
|
return matches |
|
|
|
return matches |
|
|
|
|
|
|
|
|
|
|
|
def get_upcoming_matches(self): |
|
|
|
def get_upcoming_matches(self): |
|
|
|
|
|
|
|
if self.tournament and self.tournament.display_matches() is False: |
|
|
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
matches = self.get_matches() |
|
|
|
matches = self.get_matches() |
|
|
|
upcoming = matches.filter(end_date__isnull=True).order_by('start_date') |
|
|
|
upcoming = matches.filter(end_date__isnull=True).order_by('start_date') |
|
|
|
print(f"Upcoming matches count: {upcoming.count()}") |
|
|
|
print(f"Upcoming matches count: {upcoming.count()}") |
|
|
|
|