|
|
|
|
@ -154,14 +154,16 @@ class Match(models.Model): |
|
|
|
|
def should_appear(self): |
|
|
|
|
if self.disabled is True: |
|
|
|
|
return False |
|
|
|
|
elif self.group_stage is None: |
|
|
|
|
if len(self.team_scores.all()) == 2: |
|
|
|
|
return True |
|
|
|
|
else: |
|
|
|
|
return (self.start_date or self.end_date) and len(self.team_scores.all()) > 0 |
|
|
|
|
else: |
|
|
|
|
return len(self.team_scores.all()) > 0 |
|
|
|
|
|
|
|
|
|
# elif self.group_stage is None: |
|
|
|
|
# if len(self.team_scores.all()) == 2: |
|
|
|
|
# return True |
|
|
|
|
# else: |
|
|
|
|
# return (self.start_date or self.end_date) and len(self.team_scores.all()) > 0 |
|
|
|
|
# else: |
|
|
|
|
# return len(self.team_scores.all()) > 0 |
|
|
|
|
|
|
|
|
|
def formatted_duration(self): |
|
|
|
|
|
|
|
|
|
seconds = self.current_duration() |
|
|
|
|
|