From c4aea4d1ca766cc474d5dd0444851fd87cd7980e Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 1 May 2023 12:07:05 -0600 Subject: [PATCH] Fix json parsing and change defaults --- frigate/events/maintainer.py | 2 ++ frigate/http.py | 25 +++++++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/frigate/events/maintainer.py b/frigate/events/maintainer.py index 73e456255..8ae3e5e85 100644 --- a/frigate/events/maintainer.py +++ b/frigate/events/maintainer.py @@ -208,6 +208,8 @@ class EventProcessor(threading.Thread): Event.thumbnail: event_data["thumbnail"], Event.has_clip: event_data["has_clip"], Event.has_snapshot: event_data["has_snapshot"], + Event.zones: [], + Event.data: {}, } elif type == "end": event = { diff --git a/frigate/http.py b/frigate/http.py index e513d58dd..e99d361e6 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -45,7 +45,6 @@ from frigate.util import ( restart_frigate, vainfo_hwaccel, get_tz_modifiers, - to_relative_box, ) from frigate.storage import StorageMaintainer from frigate.version import VERSION @@ -847,7 +846,7 @@ def events(): return jsonify([model_to_dict(e, exclude=excluded_fields) for e in events]) -@bp.route("/events/manual//