Fixing ruff and mypy issues #20

Merged
letteka merged 3 commits from ruff_mypy_issues into main 2026-05-12 16:42:03 -07:00
Showing only changes of commit 876f3af1e9 - Show all commits
+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()
)