From 71113ebf11ff58515cfc7c1014b4df3d34467087 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Wed, 24 Apr 2019 17:33:24 +0200 Subject: [PATCH] [lunchr] enforce per-page quantity --- modules/lunchr/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lunchr/browser.py b/modules/lunchr/browser.py index 1fef3cc599..ec7c75a854 100644 --- a/modules/lunchr/browser.py +++ b/modules/lunchr/browser.py @@ -82,7 +82,7 @@ def iter_accounts(self): def iter_history(self, account): page = 0 while True: - response = self.open('/api/v0/payments_history?page={:d}'.format(page)) + response = self.open('/api/v0/payments_history?page={:d}&per=20'.format(page)) json = response.json() if len(Dict('payments_history')(json)) == 0: break -- GitLab