aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:00:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:00:32 -0700
commitd5ea71b2892b84040b07107643d939f1cfb74d67 (patch)
tree74919956853d75ce631bdb18c7aaad9c29982118 /python
parent05665c448e846e4834fa59dfe3cd0f11ac789ac9 (diff)
downloadfatcat-d5ea71b2892b84040b07107643d939f1cfb74d67.tar.gz
fatcat-d5ea71b2892b84040b07107643d939f1cfb74d67.zip
refs: fix offset/limit bug
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/ref_routes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/ref_routes.py b/python/fatcat_web/ref_routes.py
index 72f115cf..6f887c4d 100644
--- a/python/fatcat_web/ref_routes.py
+++ b/python/fatcat_web/ref_routes.py
@@ -18,7 +18,7 @@ from fatcat_web.entity_helpers import *
def _refs_web(direction, release_ident=None, work_ident=None, openlibrary_id=None) -> RefHits:
offset = request.args.get('offset', '0')
offset = max(0, int(offset)) if offset.isnumeric() else 0
- limit = request.args.get('offset', '30')
+ limit = request.args.get('limit', '30')
limit = min(max(0, int(limit)), 100) if limit.isnumeric() else 30
if direction == "in":
hits = get_inbound_refs(