Skip to content

Commit

Permalink
Update http.py
Browse files Browse the repository at this point in the history
comparison of constants, use T/F instead
  • Loading branch information
firefly2442 authored and blakeblackshear committed Jun 11, 2021
1 parent f7975cb commit e8c342e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def events_summary():
clauses.append((Event.has_snapshot == has_snapshot))

if len(clauses) == 0:
clauses.append((1 == 1))
clauses.append((True))

groups = (
Event.select(
Expand Down Expand Up @@ -332,7 +332,7 @@ def events():
excluded_fields.append(Event.thumbnail)

if len(clauses) == 0:
clauses.append((1 == 1))
clauses.append((True))

events = (
Event.select()
Expand Down

0 comments on commit e8c342e

Please sign in to comment.