From 5eec76dd0052f841fbde6e912a1bc0747c7e4f0f Mon Sep 17 00:00:00 2001 From: Danhia Date: Mon, 14 Feb 2022 19:18:00 +0100 Subject: [PATCH] removed start challenge button when event is over --- src/events/views/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/views/events.py b/src/events/views/events.py index 220e543..204e744 100644 --- a/src/events/views/events.py +++ b/src/events/views/events.py @@ -65,7 +65,7 @@ def chall_event_info(request, event_slug, chall_slug): return redirect('events:event_info', event_slug=event_slug) elif not request.user.is_authenticated: return redirect('accounts:signin') - if request.GET.get('EventIsOver'): + if request.GET.get('EventIsOver') or timezone.now() > event_info.end_date: eventisover = True if request.GET.get('AlreadyFlagged'): alreadyflag = True