Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 25, 2024
1 parent 1babb77 commit 9139ed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion budgetkey_api/modules/simpledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,13 @@ def get_tables(self):
return jsonpify(list(self.tables.keys()))

def simple_search(self, table):
params = self.search_params[table]

q = request.args.get('q', '')
filters = params.get('filters', {}) or {}
filters = json.dumps([filters])

es_client = current_app.config['ES_CLIENT']
params = self.search_params[table]
ret = self.search_blueprint.controllers.search(
es_client, [params['index']], q,
size=20,
Expand Down

0 comments on commit 9139ed7

Please sign in to comment.