|
|
|
@ -88,7 +88,7 @@ def index(request): |
|
|
|
live = [] |
|
|
|
live = [] |
|
|
|
future = [] |
|
|
|
future = [] |
|
|
|
for t in display_tournament: |
|
|
|
for t in display_tournament: |
|
|
|
if t.supposedly_in_progress(): |
|
|
|
if t.supposedly_in_progress() and t.are_teams_positioned(): |
|
|
|
live.append(t) |
|
|
|
live.append(t) |
|
|
|
elif t.starts_in_the_future(): |
|
|
|
elif t.starts_in_the_future(): |
|
|
|
future.append(t) |
|
|
|
future.append(t) |
|
|
|
@ -165,7 +165,7 @@ def finished_tournaments(club_id, limit=None): |
|
|
|
|
|
|
|
|
|
|
|
def live_tournaments(club_id, limit=None): |
|
|
|
def live_tournaments(club_id, limit=None): |
|
|
|
tournaments = tournaments_query(Q(end_date__isnull=True), club_id, True, limit) |
|
|
|
tournaments = tournaments_query(Q(end_date__isnull=True), club_id, True, limit) |
|
|
|
return [t for t in tournaments if t.display_tournament() and t.supposedly_in_progress()] |
|
|
|
return [t for t in tournaments if t.display_tournament() and t.supposedly_in_progress() and t.are_teams_positioned()] |
|
|
|
|
|
|
|
|
|
|
|
def future_tournaments(club_id, limit=None): |
|
|
|
def future_tournaments(club_id, limit=None): |
|
|
|
tournaments = tournaments_query(Q(end_date__isnull=True), club_id, True, limit) |
|
|
|
tournaments = tournaments_query(Q(end_date__isnull=True), club_id, True, limit) |
|
|
|
|