From 8828c10a01a5e4ff4f0706f631c5d4cd7ce345bd Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 30 Aug 2024 00:41:07 +0200 Subject: [PATCH] fix small typo --- music_assistant/server/controllers/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/server/controllers/cache.py b/music_assistant/server/controllers/cache.py index bf27f7f4..0d7e6b85 100644 --- a/music_assistant/server/controllers/cache.py +++ b/music_assistant/server/controllers/cache.py @@ -203,7 +203,7 @@ class CacheController(CoreController): for db_row in await self.database.get_rows(DB_TABLE_CACHE): # clean up db cache object only if expired if db_row["expires"] < cur_timestamp: - await self.delete(db_row["key"]) + await self.delete(db_row["id"]) cleaned_records += 1 await asyncio.sleep(0) # yield to eventloop if cleaned_records > 50: -- 2.34.1