mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Update http.py
comparison of constants, use T/F instead
This commit is contained in:
parent
f7975cbbc4
commit
e8c342e162
@ -156,7 +156,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.select(
|
Event.select(
|
||||||
@ -332,7 +332,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 = (
|
events = (
|
||||||
Event.select()
|
Event.select()
|
||||||
|
Loading…
Reference in New Issue
Block a user