peak readability

This commit is contained in:
b3yond 2018-09-15 18:47:43 +02:00 committed by GitHub
parent 1703eb3802
commit e9ac7286d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ class Mailbot(Bot):
rec = rec[0] rec = rec[0]
unsubscribe_text = "\n_______\nYou don't want to receive those messages? Unsubscribe with this link: " unsubscribe_text = "\n_______\nYou don't want to receive those messages? Unsubscribe with this link: "
body = report.text + unsubscribe_text + config['web']['host'] + "/city/mail/unsubscribe/" \ body = report.text + unsubscribe_text + config['web']['host'] + "/city/mail/unsubscribe/" \
+ db.mail_subscription_token(rec, user.get_city()) + db.mail_subscription_token(rec, user.get_city())
if report.author != rec: if report.author != rec:
try: try:
sendmail.sendmail(rec, "Ticketfrei " + user.get_city() + sendmail.sendmail(rec, "Ticketfrei " + user.get_city() +