only send one status at a time
This commit is contained in:
parent
b5288f341c
commit
048bad181b
|
@ -117,15 +117,14 @@ class Mailbot(object):
|
||||||
with open(self.history_path, "w") as f:
|
with open(self.history_path, "w") as f:
|
||||||
f.write(str(self.last_mail))
|
f.write(str(self.last_mail))
|
||||||
|
|
||||||
def post(self, statuses):
|
def post(self, status):
|
||||||
"""
|
"""
|
||||||
sends reports by other sources to a mailing list.
|
sends reports by other sources to a mailing list.
|
||||||
|
|
||||||
:param statuses: (list of report.Report objects)
|
:param status: (report.Report object)
|
||||||
"""
|
"""
|
||||||
for status in statuses:
|
mailer = sendmail.Mailer(self.config)
|
||||||
mailer = sendmail.Mailer(self.config)
|
mailer.send(status.format(), self.mailinglist, "Warnung: Kontrolleure gesehen")
|
||||||
mailer.send(status.format(), self.mailinglist, "Warnung: Kontrolleure gesehen")
|
|
||||||
|
|
||||||
def make_report(self, msg):
|
def make_report(self, msg):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue