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
-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()
) )