challenges not yet published

This commit is contained in:
Danhia 2022-02-09 14:14:41 +01:00
parent 27ed107501
commit 9f2d78ac33
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ def event(request, event_slug):
begun = False begun = False
if timezone.now() >= event_info.start_date: if timezone.now() >= event_info.start_date:
begun = True begun = True
challenges = CTF.objects.filter(event=event_info).order_by('category', 'points') challenges = CTF.objects.filter(event=event_info, pub_date__lte=timezone.now()).order_by('category', 'points')
if event_info.team_size == 1: if event_info.team_size == 1:
solved_list = EventPlayer.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'user__username') solved_list = EventPlayer.objects.filter(event=event_info).order_by('-score', 'last_submission_date', 'user__username')
else: else: