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))
|
||||
|
||||
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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user