mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 08:35:21 +03:00
save max speed to db
This commit is contained in:
parent
b97fe96c88
commit
227eec49a3
@ -25,6 +25,7 @@ def should_update_db(prev_event: Event, current_event: Event) -> bool:
|
||||
or prev_event["entered_zones"] != current_event["entered_zones"]
|
||||
or prev_event["thumbnail"] != current_event["thumbnail"]
|
||||
or prev_event["end_time"] != current_event["end_time"]
|
||||
or prev_event["max_estimated_speed"] != current_event["max_estimated_speed"]
|
||||
):
|
||||
return True
|
||||
return False
|
||||
@ -209,6 +210,7 @@ class EventProcessor(threading.Thread):
|
||||
"score": score,
|
||||
"top_score": event_data["top_score"],
|
||||
"attributes": attributes,
|
||||
"max_estimated_speed": event_data["max_estimated_speed"],
|
||||
"type": "object",
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user