From 11122142e040eb3575e657bf0f355db584edc358 Mon Sep 17 00:00:00 2001 From: Brandon Myers Date: Fri, 24 May 2019 19:58:03 -0500 Subject: [PATCH] Fix watchlist process_alert function --- alerts/get_watchlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alerts/get_watchlist.py b/alerts/get_watchlist.py index e0139f93..cb0157b1 100644 --- a/alerts/get_watchlist.py +++ b/alerts/get_watchlist.py @@ -35,9 +35,9 @@ class AlertWatchList(AlertTask): else: logger.error('The watchlist request failed. Status {0}.\n'.format(r)) - def process_alert(self, term): + def process_alert(self): search_query = SearchQuery(minutes=20) - content = QueryStringMatch(str(term)) + content = QueryStringMatch(str(self.watchterm)) search_query.add_must(content) self.filtersManual(search_query) self.searchEventsSimple()