Remove some debugging code

This commit is contained in:
Mark Veidemanis 2022-08-03 09:25:12 +01:00
parent 04d4cee222
commit 716bd6afb6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 0 additions and 3 deletions

View File

@ -168,7 +168,6 @@ def construct_alert_query():
def get_irc_alerts(user):
query = construct_alert_query()
print("QUERY1", query)
results = run_main_query(
client,
user, # passed through run_main_query to filter_blacklisted
@ -176,7 +175,6 @@ def get_irc_alerts(user):
custom_query=True,
index=settings.OPENSEARCH_INDEX_INT,
)
print("ALERTS", results)
if not results:
return []
results_parsed = []

View File

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