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

Commit

Permalink
fix: Set TTL to 0 if None when doing expiration checks (#701)
Browse files Browse the repository at this point in the history
closes: #700
  • Loading branch information
jrconlin authored and bbangert committed Oct 13, 2016
1 parent 9625d7a commit 0aab2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopush/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def expired(self, at_time=None):
"""
now = at_time or int(time.time())
return now >= (self.ttl + self.timestamp)
return now >= ((self.ttl or 0) + self.timestamp)

@classmethod
def from_message_table(cls, uaid, item):
Expand Down

0 comments on commit 0aab2a9

Please sign in to comment.