From b68cad6e3a3ada70d19b6bb04c137fddb4f298bd Mon Sep 17 00:00:00 2001 From: Samuel Kim Date: Thu, 26 May 2016 21:29:08 -0400 Subject: [PATCH] total_seconds (#21) --- utils/flag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/flag.py b/utils/flag.py index 605ddda..b518b9f 100644 --- a/utils/flag.py +++ b/utils/flag.py @@ -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):