mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Cleanup
This commit is contained in:
parent
fad7cecbc0
commit
511fbe4ef4
@ -95,12 +95,10 @@ class TimelineProcessor(threading.Thread):
|
|||||||
)
|
)
|
||||||
Timeline.insert(timeline_entry).execute()
|
Timeline.insert(timeline_entry).execute()
|
||||||
elif prev_event_data["attributes"] == {} and event_data["attributes"] != {}:
|
elif prev_event_data["attributes"] == {} and event_data["attributes"] != {}:
|
||||||
logger.error(f"Saving info {event_data['attributes']}")
|
|
||||||
timeline_entry[Timeline.class_type] = "attribute"
|
timeline_entry[Timeline.class_type] = "attribute"
|
||||||
timeline_entry[Timeline.data]["attribute"] = list(
|
timeline_entry[Timeline.data]["attribute"] = list(
|
||||||
event_data["attributes"].keys()
|
event_data["attributes"].keys()
|
||||||
)[0]
|
)[0]
|
||||||
logger.error(f"The data is {timeline_entry}")
|
|
||||||
Timeline.insert(timeline_entry).execute()
|
Timeline.insert(timeline_entry).execute()
|
||||||
elif event_type == "end":
|
elif event_type == "end":
|
||||||
timeline_entry[Timeline.class_type] = "gone"
|
timeline_entry[Timeline.class_type] = "gone"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user