total_seconds (#21)

master
Samuel Kim 2016-05-26 21:29:08 -04:00 committed by Fox Wilson
parent 9b5b762036
commit b68cad6e3a
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import config
def submit_flag(team, challenge, flag):
if g.redis.get("rl{}".format(team.id)):
delta = config.competition_end - datetime.now()
if delta.days > 0 or delta.seconds > (config.flag_rl * 6):
if delta.total_seconds() > (config.flag_rl * 6):
return FLAG_SUBMISSION_TOO_FAST
if team.solved(challenge):