Delete displayed-attributes when init search

master
Tanner Collin 4 years ago
parent 0e086b60b8
commit 4727d34eb6
  1. 4
      apiserver/search.py

@ -40,6 +40,10 @@ def update_attributes():
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))
return r.json()
except KeyboardInterrupt:
raise
except BaseException as e:

Loading…
Cancel
Save