From f72eaf781c845269dc44fc2ba8d1aee3fe7970d8 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 ) )