обновление даты создания данных

This commit is contained in:
gitadmin committed 2016-03-12 16:18:07 +03:00
1 parent 197ad95959
commit 0f7ca4f6bf
1 file changed
+1
+1
View File
@@ -29,6 +29,7 @@ def shelf(filename, ttl=0):
"data": {},
})
elif ttl > 0 and (time.time() - d["created_at"]) > ttl:
d["created_at"] = time.time()
d["data"] = {}
return d
except: