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

sandbox1
inpos 2016-03-12 16:18:07 +03:00
parent 197ad95959
commit 0f7ca4f6bf
1 changed files with 1 additions and 0 deletions

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: