querying an account's history with no page will cause page to be set to 0

This commit is contained in:
Jude Nelson
2018-09-20 17:04:38 -04:00
parent ab58ef2bbe
commit 91b0615e76

View File

@@ -412,7 +412,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
page = qs_values.get('page', None)
if page is None:
return self._reply_json({'error': 'page argument required'}, status_code=400)
page = "0" # compatibility
try:
assert len(page) < 10