Make code more pep8 compliant

multi-deployment
git-sid 2018-09-13 17:33:33 +02:00
parent c576888da5
commit c2ed73bafc
4 changed files with 8 additions and 4 deletions

View File

@ -71,4 +71,5 @@ class MastodonBot(Bot):
try:
m.toot(text)
except Exception:
logger.error('Error tooting: ' + user.get_city() + ': ' + report.id, exc_info=True)
logger.error('Error tooting: ' + user.get_city() + ': ' +
report.id, exc_info=True)

View File

@ -34,7 +34,8 @@ class TelegramBot(Bot):
# TODO: /help message should be set in frontend
else:
reports.append(Report(update.message.sender.username, self,
update.message.text, None, update.message.date))
update.message.text, None,
update.message.date))
return reports
def post(self, user, report):

View File

@ -145,6 +145,7 @@ def update_mail_md(user):
user.set_mail_md(request.forms['mail_md'])
return user.state()
@post('/settings/goodlist')
@view('template/settings.tpl')
def update_trigger_patterns(user):

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
class Report(object):
"""
A ticketfrei report object.