From e53c5fc904324eae6ef18f81406fcf1439b2874a Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Wed, 2 Dec 2020 13:28:08 +1300 Subject: [PATCH] fix mistake. --- apiserver/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/search.py b/apiserver/search.py index 3f28f75..706d890 100644 --- a/apiserver/search.py +++ b/apiserver/search.py @@ -69,7 +69,7 @@ def put_story(story): def search(q, skip=0, limit=250): try: - params = dict(q=q, skip=skip, limit=limit) + params = dict(q=q, offset=skip, limit=limit) r = requests.get(MEILI_URL + 'indexes/qotnews/search', params=params, timeout=2) if r.status_code != 200: raise Exception('Bad response code ' + str(r.status_code))