From 12f577c527480e0813a6ea8d380d1e41bd29be09 Mon Sep 17 00:00:00 2001 From: Noiredd Date: Tue, 11 Dec 2018 19:37:51 +0100 Subject: [PATCH] hotfix: I was clumsy with 8027566 my sincere apologies! --- fw-local/database.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 = []