Skip to content

Commit

Permalink
Merge pull request #135 from thalesgroup-cert/v2
Browse files Browse the repository at this point in the history
Fix false positives in domain monitoring module
  • Loading branch information
ygalnezri authored Jun 27, 2024
2 parents efc88db + dc207a1 commit 0d38632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Watcher/Watcher/site_monitoring/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def create_alert(alert, site, new_ip, new_ip_second, score):

# Check if the new alert is identical to the last two alerts created at the exact same time
for previous_alert in last_two_alerts:
if all(getattr(previous_alert, key) == value for key, value in alert_data.items()) and previous_alert.created_at.replace(microsecond=0) == now.replace(microsecond=0):
if all(getattr(previous_alert, key) == value for key, value in alert_data.items()) and previous_alert.created_at == now:
return

# Create a new alert
Expand Down

0 comments on commit 0d38632

Please sign in to comment.