fixing linting issues
This commit is contained in:
+7
-9
@@ -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()
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user