mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Another fix
This commit is contained in:
parent
dba31867c6
commit
9e4274f209
@ -47,7 +47,7 @@ def cached_wrapper(inner_func):
|
|||||||
|
|
||||||
def invalidate_caches(scrobbletime):
|
def invalidate_caches(scrobbletime):
|
||||||
for k in cache.keys():
|
for k in cache.keys():
|
||||||
if (k[2] is None or scrobbletime >= k[2]) and (k[3] is None or scrobbletime <= k[3]):
|
if (k[3] is None or scrobbletime >= k[3]) and (k[4] is None or scrobbletime <= k[4]):
|
||||||
del cache[k]
|
del cache[k]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user