ci: add flake8

This commit is contained in:
Iain Learmonth 2022-05-16 13:29:48 +01:00
parent 014596d271
commit dd501a6e4e
32 changed files with 170 additions and 171 deletions

View file

@ -37,7 +37,7 @@ class Activity(db.Model): # type: ignore
def notify(self) -> int:
count = 0
hooks = Webhook.query.filter(
Webhook.destroyed == None
Webhook.destroyed.is_(None)
)
for hook in hooks:
hook.send(self.text)
@ -55,4 +55,4 @@ class Webhook(AbstractConfiguration):
else:
# Matrix as default
data = {"body": text}
r = requests.post(self.url, json=data)
requests.post(self.url, json=data)