瀏覽代碼

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