Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
caught another instance of string timestamp treated as float
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Yelsey committed Feb 20, 2012
1 parent d9812ee commit 38ebffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resched/scheduler.py
Expand Up @@ -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

Expand Down

0 comments on commit 38ebffb

Please sign in to comment.