Fixing ruff and mypy issues (#20)
Dependency update / dependency-update (push) Failing after 1m52s
CI / black (push) Successful in 1m31s
CI / ruff (push) Successful in 1m32s
CI / mypy (push) Successful in 1m41s
CI / pytest (push) Failing after 1m37s

Reviewed-on: #20
Co-authored-by: Andrew Kettel <andrew.kettel@gmail.com>
Co-committed-by: Andrew Kettel <andrew.kettel@gmail.com>
This commit was merged in pull request #20.
This commit is contained in:
2026-05-12 16:42:02 -07:00
committed by letteka
parent fb1d7fec37
commit c2faf2c81c
-2
View File
@@ -66,7 +66,6 @@ class CameraEvent(Base):
@staticmethod @staticmethod
def recent(limit: int = 50) -> list[CameraEvent]: def recent(limit: int = 50) -> list[CameraEvent]:
return list( return list(
db.session.execute( db.session.execute(
db.select(CameraEvent) db.select(CameraEvent)
.order_by(CameraEvent.timestamp.desc()) .order_by(CameraEvent.timestamp.desc())
@@ -74,5 +73,4 @@ class CameraEvent(Base):
) )
.scalars() .scalars()
.all() .all()
) )