обновление даты создания данных
This commit is contained in:
1 parent
197ad95959
commit
0f7ca4f6bf
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user