From 09e3d57b4063a370e8347ae0a3bb2b0b7babf88d Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 7 May 2020 23:41:13 +0200 Subject: [PATCH] lib/cache.py: fixed expiration time --- lib/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache.py b/lib/cache.py index a8bec58..2dd1151 100644 --- a/lib/cache.py +++ b/lib/cache.py @@ -77,7 +77,7 @@ def store(signature, value): value_record = { "val": value_to_store, - "expiry": time.time() + _randint(1000, 2000)*1000, + "expiry": time.time() + _randint(1000, 2000), } CACHE[signature] = value_record