Move FEED_LENGTH to settings.py, use for search results

This commit is contained in:
2022-07-04 06:05:33 +00:00
parent 61021d8f91
commit 2e2c9ae837
3 changed files with 6 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ def put_story(story):
def search(q):
if not SEARCH_ENABLED: return []
params = dict(q=q, limit=100)
params = dict(q=q, limit=settings.FEED_LENGTH)
r = meili_api(requests.get, 'indexes/qotnews/search', params=params, parse_json=False)
return r