improve should be over tournament setup

bracket-feature
Raz 9 months ago
parent d656f415b4
commit 6eee5c48d2
  1. 2
      tournaments/models/group_stage.py

@ -140,7 +140,7 @@ class GroupStage(models.Model):
return False return False
def is_completed(self): def is_completed(self):
return not self.match_set.filter(end_date__isnull=True).exists() return not self.match_set.filter(end_date__isnull=True).exists() and self.match_set.count() > 0
class LiveGroupStage: class LiveGroupStage:
def __init__(self, title, step, index): def __init__(self, title, step, index):

Loading…
Cancel
Save