Skip to content

Commit

Permalink
make sure the id is a str
Browse files Browse the repository at this point in the history
cache has the ids as strings because json cant store keys in a int variable
  • Loading branch information
prochy-exe committed Sep 8, 2024
1 parent 8d6560c commit 1756332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alfetcher/al_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down

0 comments on commit 1756332

Please sign in to comment.