Permalink
Browse files

caught another instance of string timestamp treated as float

  • Loading branch information...
1 parent d9812ee commit 38ebffb1ab29d0c3db56ea53849ab1466fc2e056 Ben Yelsey committed Feb 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 resched/scheduler.py
View
@@ -221,7 +221,7 @@ def is_expired(self, value):
expire_date = self.server.hget(self.EXPIRATIONS, value)
if expire_date:
# new method just tracks a TTL in a hash
- return expire_date > time.time()
+ return float(expire_date) > time.time()
# old method is with expiring key
return self.server.get(self._payload_key(value)) is not None

0 comments on commit 38ebffb

Please sign in to comment.