fix startup regression

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2025-12-10 14:01:07 +13:00
parent f52f9aceb4
commit 9cf0472246
+6 -2
View File
@@ -93,10 +93,14 @@ class AnimeMapper:
force_primary=True,
)
if not row or row.get("refreshed_at") is None:
if not row:
return True
last_refresh = float(row["refreshed_at"])
last_refresh = row[0] if isinstance(row, tuple) else row["refreshed_at"]
if last_refresh is None:
return True
last_refresh = float(last_refresh)
return (time.time() - last_refresh) >= interval
def _ensure_periodic_refresh(self):