Commit 8f1adee2 authored by Jonathan Michalon's avatar Jonathan Michalon

Fix problem notification: only complain when state changes

parent a357004a
......@@ -57,8 +57,9 @@ class Check(object):
if not self.check():
self.retry_count = min(self.retry_count + 1, self.retry)
if self.retry_count == self.retry or immediate:
self.ok = False
mails.send_email_for_check(self)
if self.ok:
self.ok = False
mails.send_email_for_check(self)
else:
if not self.ok:
self.ok = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment