From 9e4274f209df13c27888d754e12102425ae0d42c Mon Sep 17 00:00:00 2001
From: krateng <git.noreply@krateng.ch>
Date: Fri, 18 Feb 2022 09:48:11 +0100
Subject: [PATCH] Another fix

---
 maloja/database/dbcache.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maloja/database/dbcache.py b/maloja/database/dbcache.py
index 993a326..d505e59 100644
--- a/maloja/database/dbcache.py
+++ b/maloja/database/dbcache.py
@@ -47,7 +47,7 @@ def cached_wrapper(inner_func):
 
 def invalidate_caches(scrobbletime):
 	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]