Skip to content

Commit

Permalink
Keep more info
Browse files Browse the repository at this point in the history
  • Loading branch information
npaun committed Apr 6, 2024
1 parent 15911c2 commit 488dc11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bus_believability/track/vehicles.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def update_vehicle_positions(sess, con, url=VEHICLE_UPDATES_URL):
cur.execute(f"""
INSERT INTO vehicle_updates
VALUES {vs.asplaceholder()}
ON CONFLICT (start_date, trip_id, stop_sequence)
ON CONFLICT (start_date, trip_id, stop_sequence, lat, lon)
DO UPDATE SET
lat=excluded.lat,
lon=excluded.lon,
speed=excluded.speed,
vehicle_status=excluded.vehicle_status,
observed_at=excluded.observed_at;
Expand Down

0 comments on commit 488dc11

Please sign in to comment.