Update http.py

comparison of constants, use T/F instead
This commit is contained in:
Patrick 2021-06-09 22:15:48 -06:00 committed by GitHub
parent ec9b525a3c
commit b340a267ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))