mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Update http.py
comparison of constants, use T/F instead
This commit is contained in:
parent
ec9b525a3c
commit
b340a267ea
@ -123,7 +123,7 @@ def events_summary():
|
|||||||
clauses.append((Event.has_snapshot == has_snapshot))
|
clauses.append((Event.has_snapshot == has_snapshot))
|
||||||
|
|
||||||
if len(clauses) == 0:
|
if len(clauses) == 0:
|
||||||
clauses.append((1 == 1))
|
clauses.append((True))
|
||||||
|
|
||||||
groups = (
|
groups = (
|
||||||
Event
|
Event
|
||||||
@ -257,7 +257,7 @@ def events():
|
|||||||
excluded_fields.append(Event.thumbnail)
|
excluded_fields.append(Event.thumbnail)
|
||||||
|
|
||||||
if len(clauses) == 0:
|
if len(clauses) == 0:
|
||||||
clauses.append((1 == 1))
|
clauses.append((True))
|
||||||
|
|
||||||
events = (Event.select()
|
events = (Event.select()
|
||||||
.where(reduce(operator.and_, clauses))
|
.where(reduce(operator.and_, clauses))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user