From b340a267ea51609293e01468a3a62589d0805fd6 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 9 Jun 2021 22:15:48 -0600 Subject: [PATCH] Update http.py comparison of constants, use T/F instead --- frigate/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 4d818d37c..0d7d33a81 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -123,7 +123,7 @@ def events_summary(): clauses.append((Event.has_snapshot == has_snapshot)) if len(clauses) == 0: - clauses.append((1 == 1)) + clauses.append((True)) groups = ( Event @@ -257,7 +257,7 @@ def events(): excluded_fields.append(Event.thumbnail) if len(clauses) == 0: - clauses.append((1 == 1)) + clauses.append((True)) events = (Event.select() .where(reduce(operator.and_, clauses))