Check if date range is equal to
This commit is contained in:
@@ -205,6 +205,7 @@ class NotificationRuleData(object):
|
||||
A rule has matched.
|
||||
"""
|
||||
current_match = self.get_match(index)
|
||||
log.debug(f"Rule matched: {index} - current match: {current_match}")
|
||||
if current_match is False:
|
||||
# Matched now, but not before
|
||||
formatted_aggs = self.format_aggs(aggs)
|
||||
@@ -216,6 +217,7 @@ class NotificationRuleData(object):
|
||||
A rule has not matched.
|
||||
"""
|
||||
current_match = self.get_match(index)
|
||||
log.debug(f"Rule not matched: {index} - current match: {current_match}")
|
||||
if current_match is True:
|
||||
# Matched before, but not now
|
||||
if self.object.send_empty:
|
||||
|
||||
Reference in New Issue
Block a user