diff --git a/CTFd/utils.py b/CTFd/utils.py index ebfa2894..4da0ce81 100644 --- a/CTFd/utils.py +++ b/CTFd/utils.py @@ -245,7 +245,9 @@ def ctf_started(): def ctf_ended(): - return time.time() > int(get_config("end") or 0) + if int(get_config("end") or 0): + return time.time() > int(get_config("end") or 0) + return False def user_can_view_challenges():