Implement getting alerts in overview

This commit is contained in:
2022-08-03 09:24:13 +01:00
parent f52d01d6f7
commit 04d4cee222
6 changed files with 174 additions and 2 deletions

View File

@@ -123,7 +123,8 @@ def run_main_query(client, user, query, custom_query=False, index=None, size=Non
search_query = construct_query(query, size)
try:
response = client.search(body=search_query, index=index)
except RequestError:
except RequestError as err:
print(err)
return False
filter_blacklisted(user, response)
return response