Skip to content

Commit

Permalink
allow progress to be 0 again
Browse files Browse the repository at this point in the history
  • Loading branch information
prochy-exe authored Sep 8, 2024
1 parent 75f025a commit e358434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alfetcher/al_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def update_entry(anime_id, progress, al_token=None):
try:
user_eps = get_anime_entry_for_user(anime_id, al_token=al_token)[anime_id]['watched_ep']
except:
user_eps = 0
user_eps = -1 #allow for 0 as a value

if progress <= user_eps:
print_deb('Not updating, progress is lower or equal than user progress')
Expand Down Expand Up @@ -663,4 +663,4 @@ def update_entry(anime_id, progress, al_token=None):
else:
variables['status'] = 'CURRENT'
make_graphql_request(query, variables, al_token, user_request = True)
print_deb('Updating progress successful')
print_deb('Updating progress successful')

0 comments on commit e358434

Please sign in to comment.