diff --git a/fw-local/database.py b/fw-local/database.py index 4f5fec8..626e2b8 100644 --- a/fw-local/database.py +++ b/fw-local/database.py @@ -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 = []