Only allow clone contest after 1 day
This commit is contained in:
parent
e24c208e1d
commit
345684300f
1 changed files with 4 additions and 1 deletions
|
@ -480,7 +480,10 @@ def is_contest_clonable(request, contest):
|
|||
return True
|
||||
if contest.access_code and not contest.is_editable_by(request.user):
|
||||
return False
|
||||
if contest.ended:
|
||||
if (
|
||||
contest.end_time is not None
|
||||
and contest.end_time + timedelta(days=1) < contest._now
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue