From 947ccbc65459ae7169fdc63911cb63c72ed9e8a1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 29 Jul 2023 06:05:17 -0600 Subject: [PATCH] Accept floats for export when used directly with event start / end time (#7314) * Accept floats for export when used directly with event start / end time * Formatting * Formatting --- frigate/http.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 9f3fdaafe..6cf552c9f 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1603,8 +1603,14 @@ def vod_event(id): ) -@bp.route("/export//start//end/", methods=["POST"]) -def export_recording(camera_name: str, start_time: int, end_time: int): +@bp.route( + "/export//start//end/", methods=["POST"] +) +@bp.route( + "/export//start//end/", + methods=["POST"], +) +def export_recording(camera_name: str, start_time, end_time): playback_factor = request.get_json(silent=True).get("playback", "realtime") exporter = RecordingExporter( current_app.frigate_config,