save max speed to db

This commit is contained in:
Josh Hawkins 2024-12-09 08:05:58 -06:00
parent b97fe96c88
commit 227eec49a3

View File

@ -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",
},
}