Compare commits
3 Commits
main
...
876f3af1e9
| Author | SHA1 | Date | |
|---|---|---|---|
| 876f3af1e9 | |||
| f5eddbd052 | |||
| 95acf9d84e |
+7
-9
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user