Remove some debugging code
This commit is contained in:
parent
04d4cee222
commit
716bd6afb6
|
@ -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 = []
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue