Commit 3fda2a2d authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

bug type

parent 95a2f61b
......@@ -84,7 +84,7 @@ class codes:
t = time.time()
if self.codes.has_key(codename):
if t - self.codes[codename]['timestamp'] > self.conf['expire']:
if t - self.codes[codename]['timestamp'] > int(self.conf['expire']):
del self.codes[codename]
if self.codes.has_key(codename):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment