|
|
|
@ -457,7 +457,9 @@ class Tournament(models.Model): |
|
|
|
for group_stage in self.groupstage_set.all(): |
|
|
|
for group_stage in self.groupstage_set.all(): |
|
|
|
matches.extend(group_stage.match_set.all()) |
|
|
|
matches.extend(group_stage.match_set.all()) |
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
matches = [m for m in matches if m.should_appear()] |
|
|
|
matches.sort(key=lambda m: (m.non_null_start_date(), m.index), reverse=True) |
|
|
|
# matches.sort(key=lambda m: (m.non_null_start_date(), m.index), reverse=True) |
|
|
|
|
|
|
|
matches.sort(key=lambda m: (m.start_date is None, m.start_date, m.index), reverse=True) |
|
|
|
|
|
|
|
|
|
|
|
return matches |
|
|
|
return matches |
|
|
|
|
|
|
|
|
|
|
|
def display_rankings(self): |
|
|
|
def display_rankings(self): |
|
|
|
|