소스 검색

Update http.py

comparison of constants, use T/F instead
Patrick 3 년 전
부모
커밋
e8c342e162
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frigate/http.py

+ 2 - 2
frigate/http.py

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