Allow disabling ingesting
This commit is contained in:
@@ -357,7 +357,8 @@ class NotificationRuleData(object):
|
||||
:param matches: the matches to store
|
||||
"""
|
||||
# new_matches = self.reform_matches(index, matches, meta, mode)
|
||||
await self.db.async_store_matches(matches)
|
||||
if self.object.ingest:
|
||||
await self.db.async_store_matches(matches)
|
||||
|
||||
def ingest_matches_sync(self, index, matches, meta, mode):
|
||||
"""
|
||||
@@ -366,7 +367,8 @@ class NotificationRuleData(object):
|
||||
:param matches: the matches to store
|
||||
"""
|
||||
# new_matches = self.reform_matches(index, matches, meta, mode)
|
||||
self.db.store_matches(matches)
|
||||
if self.object.ingest:
|
||||
self.db.store_matches(matches)
|
||||
|
||||
async def rule_matched(self, index, message, meta, mode):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user