From 4e0459541532f865346ccb8efe45ae5df2d21f9f Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Mon, 9 Nov 2020 15:44:44 +1300 Subject: [PATCH] fix search. --- apiserver/search.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apiserver/search.py b/apiserver/search.py index 79e2193..08f3617 100644 --- a/apiserver/search.py +++ b/apiserver/search.py @@ -39,10 +39,7 @@ def update_attributes(): r = requests.post(MEILI_URL + 'indexes/qotnews/settings/searchable-attributes', json=json, timeout=2) if r.status_code != 202: raise Exception('Bad response code ' + str(r.status_code)) - return r.json() - r = requests.delete(MEILI_URL + 'indexes/qotnews/settings/displayed-attributes', timeout=2) - if r.status_code != 202: - raise Exception('Bad response code ' + str(r.status_code)) + requests.delete(MEILI_URL + 'indexes/qotnews/settings/displayed-attributes', timeout=2) return r.json() except KeyboardInterrupt: raise