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 @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()) .limit(limit)
.limit(limit) )
) .scalars()
.scalars() .all()
.all()
) )