обновление даты создания данных
parent
197ad95959
commit
0f7ca4f6bf
|
@ -29,6 +29,7 @@ def shelf(filename, ttl=0):
|
||||||
"data": {},
|
"data": {},
|
||||||
})
|
})
|
||||||
elif ttl > 0 and (time.time() - d["created_at"]) > ttl:
|
elif ttl > 0 and (time.time() - d["created_at"]) > ttl:
|
||||||
|
d["created_at"] = time.time()
|
||||||
d["data"] = {}
|
d["data"] = {}
|
||||||
return d
|
return d
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue