From 9f1da8746fb1e39c14aa5693b0e7783e0777a064 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 26 May 2022 09:23:23 -0600 Subject: [PATCH] Use distinct instead of group_by --- frigate/http.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index daf3562df..1115bce4b 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -250,9 +250,7 @@ def set_sub_label(id): def get_sub_labels(): try: events = ( - Event.select( - Event.sub_label, - ).group_by(Event.sub_label) + Event.select(Event.sub_label).distinct() ).dicts() except Exception as e: return jsonify(