Skip to content

Commit

Permalink
remove version 2 check
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Apr 13, 2018
1 parent 4045f05 commit 70e64c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.module.codequick/lib/codequick/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(self, name, ttl=None):
version = data.get(self._version_string, 1)
if version == 1:
self._data = {key: (val, time.time()) for key, val in data.items()}
elif version == 2:
else:
data = data[self._data_string]
if ttl:
self._data = {key: item for key, item in data.items() if time.time() - item[1] < ttl}
Expand Down

0 comments on commit 70e64c4

Please sign in to comment.