API recordings snapsnot PNG fix (#8401)

* Update http.py

* Update http.py

Limit query results
This commit is contained in:
tpjanssen
2023-11-01 12:14:51 +01:00
committed by GitHub
parent 8085ad4b4c
commit fd6a3bd5d2

View File

@@ -1388,6 +1388,8 @@ def get_snapshot_from_recording(camera_name: str, frame_time: str):
)
)
.where(Recordings.camera == camera_name)
.order_by(Recordings.start_time.desc())
.limit(1)
)
try: