From 28faf5ad10b301aa7d2f88897d5b0ef2de405bd1 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 10 Feb 2024 20:16:47 +0100 Subject: [PATCH] Identify stoptimes with departure time to ensure beeing unique --- sncfgtfs/management/commands/update_sncf_gtfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sncfgtfs/management/commands/update_sncf_gtfs.py b/sncfgtfs/management/commands/update_sncf_gtfs.py index 1d6b52e..ddb7372 100644 --- a/sncfgtfs/management/commands/update_sncf_gtfs.py +++ b/sncfgtfs/management/commands/update_sncf_gtfs.py @@ -326,7 +326,7 @@ class Command(BaseCommand): pickup_type = 1 st = StopTime( - id=f"{trip_id}-{stop_id}", + id=f"{trip_id}-{stop_id}-{stop_time_dict['departure_time']}", trip_id=trip_id, arrival_time=timedelta(seconds=arr_time), departure_time=timedelta(seconds=dep_time),