Identify stoptimes with departure time to ensure beeing unique

This commit is contained in:
Emmy D'Anello 2024-02-10 20:16:47 +01:00
parent e4bcf9bd2e
commit 28faf5ad10
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ class Command(BaseCommand):
pickup_type = 1 pickup_type = 1
st = StopTime( st = StopTime(
id=f"{trip_id}-{stop_id}", id=f"{trip_id}-{stop_id}-{stop_time_dict['departure_time']}",
trip_id=trip_id, trip_id=trip_id,
arrival_time=timedelta(seconds=arr_time), arrival_time=timedelta(seconds=arr_time),
departure_time=timedelta(seconds=dep_time), departure_time=timedelta(seconds=dep_time),