From 1756332241e7937ac5b1482c3bb9a5f9a5c1c5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Proch=C3=A1zka?= Date: Sun, 8 Sep 2024 20:35:41 +0200 Subject: [PATCH] make sure the id is a str cache has the ids as strings because json cant store keys in a int variable --- alfetcher/al_fetcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/alfetcher/al_fetcher.py b/alfetcher/al_fetcher.py index d0d3cdf..6ec16f2 100644 --- a/alfetcher/al_fetcher.py +++ b/alfetcher/al_fetcher.py @@ -626,6 +626,7 @@ def al_to_mal_id(al_id): return None def update_entry(anime_id, progress, al_token=None): + anime_id = str(anime_id) progress = int(progress) total_eps = get_anime_info(anime_id, al_token=al_token)[anime_id]['total_eps'] query = """