fix mistake.
This commit is contained in:
parent
59c6f17e67
commit
e53c5fc904
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user