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
+7 -9
View File
@@ -66,13 +66,11 @@ class CameraEvent(Base):
@staticmethod
def recent(limit: int = 50) -> list[CameraEvent]:
return list(
db.session.execute(
db.select(CameraEvent)
.order_by(CameraEvent.timestamp.desc())
.limit(limit)
)
.scalars()
.all()
db.session.execute(
db.select(CameraEvent)
.order_by(CameraEvent.timestamp.desc())
.limit(limit)
)
.scalars()
.all()
)