mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-10 09:07:37 +03:00
formatting
This commit is contained in:
parent
3d29d1e51c
commit
a496849d17
@ -24,7 +24,7 @@ def should_update_db(prev_event: Event, current_event: Event) -> bool:
|
|||||||
and (prev_event["has_clip"] or prev_event["has_snapshot"])
|
and (prev_event["has_clip"] or prev_event["has_snapshot"])
|
||||||
):
|
):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if current_event["has_clip"] or current_event["has_snapshot"]:
|
if current_event["has_clip"] or current_event["has_snapshot"]:
|
||||||
# if this is the first time has_clip or has_snapshot turned true
|
# if this is the first time has_clip or has_snapshot turned true
|
||||||
if not prev_event["has_clip"] and not prev_event["has_snapshot"]:
|
if not prev_event["has_clip"] and not prev_event["has_snapshot"]:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user