ci: add flake8
This commit is contained in:
parent
014596d271
commit
dd501a6e4e
32 changed files with 170 additions and 171 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue