Skip to content

Commit

Permalink
hotfix: I was clumsy with 8027566
Browse files Browse the repository at this point in the history
my sincere apologies!
  • Loading branch information
Noiredd committed Dec 11, 2018
1 parent 51a4ea7 commit 12f577c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fw-local/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def softUpdate(self):
return None
rated, per_page = first_request
# compute how many pages should be requested
if True or not pages or not per_page:
return None # will happen if the user does not have any items in the list
if not rated or not per_page:
# will happen if the user does not have any items in the list
self.callback(-1)
return None
pages = ceil((rated-len(self.items))/per_page)
# request these pages from the API
itemPages = []
Expand Down

0 comments on commit 12f577c

Please sign in to comment.