lint: tidy up code some more, pylint is enforcing

This commit is contained in:
Iain Learmonth 2022-06-17 14:02:10 +01:00
parent 66b3ccc0f0
commit 61564e8c01
17 changed files with 72 additions and 38 deletions

View file

@ -6,9 +6,9 @@ from app.extensions import db
from app.models.alarms import Alarm
def alarms_for(target: str) -> List[Alarm]:
def alarms_for(target: BRN) -> List[Alarm]:
return list(Alarm.query.filter(
Alarm.target == target
Alarm.target == str(target)
).all())