Skip to content
Snippets Groups Projects
Commit 8e0f7e7a authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

FIX: Point deduplication

parent 8862fbde
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ class TripHistory: ...@@ -131,7 +131,7 @@ class TripHistory:
len(self.history) len(self.history)
and lon == self.history[-1].lon and lon == self.history[-1].lon
and lat == self.history[-1].lat and lat == self.history[-1].lat
and json["properties"]["last_position"]["origin_timestamp"] == self.history[-1].origin_timestamp and datetime.datetime.fromisoformat(json["properties"]["last_position"]["origin_timestamp"]) == self.history[-1].origin_timestamp
and json["properties"]["last_position"]["state_position"] == self.history[-1].state_position and json["properties"]["last_position"]["state_position"] == self.history[-1].state_position
): ):
self.history[-1].last_captured = dt self.history[-1].last_captured = dt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment