This commit is contained in:
2025-01-22 06:38:40 -05:00
parent 38dbddd297
commit 4b16a4a265
5 changed files with 64 additions and 11 deletions

View File

@@ -264,7 +264,8 @@ class Cache:
matched.time = time_diff
logging.info("Found %s on redis cache, skipping SQLite...",
f"{artist} - {song}")
f"{artist} - {song}")
await self.redis_cache.increment_found_count(self.label)
return matched
"""SQLite: Fallback"""
@@ -302,6 +303,7 @@ class Cache:
time_end: float = time.time()
time_diff: float = time_end - time_start
matched.time = time_diff
await self.redis_cache.increment_found_count(self.label)
return matched
except:
traceback.print_exc()