From a444714a5e75911574cdad988e6150b2ccc007d1 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 11 Sep 2023 15:50:06 -0500 Subject: [PATCH] skip creating model instances --- frigate/http.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index b6142717f..ed47c8661 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -590,9 +590,10 @@ def timeline(): .where(reduce(operator.and_, clauses)) .order_by(Timeline.timestamp.asc()) .limit(limit) + .dicts() ) - return jsonify([model_to_dict(t) for t in timeline]) + return jsonify([t for t in timeline]) @bp.route("//