mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-16 11:44:22 +01:00
Fixing ctf_ended function
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user