From bf95af0f22f910a66e29096b117811d6ec21feb5 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 24 Nov 2020 15:44:20 -0600 Subject: [PATCH] add zones to summary data --- frigate/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index 43fa17883..a2b16857f 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -50,12 +50,14 @@ def events_summary(): Event.camera, Event.label, fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')).alias('day'), + Event.zones, fn.COUNT(Event.id).alias('count') ) .group_by( Event.camera, Event.label, - fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')) + fn.strftime('%Y-%m-%d', fn.datetime(Event.start_time, 'unixepoch', 'localtime')), + Event.zones ) )