Commit 71113ebf authored by ntome's avatar ntome Committed by ntome

[lunchr] enforce per-page quantity

parent f74675a3
......@@ -82,7 +82,7 @@ class LunchrBrowser(APIBrowser):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment