forked from TDTP/proto_backend
fix array trayectos
parent
bf82f2a0b5
commit
4c27c97e6d
2
main.py
2
main.py
|
@ -82,7 +82,7 @@ def read_file_proto_x_stop(content):
|
|||
trip_data["hora_llegada"] = datetime.fromtimestamp(update.arrival.time).strftime('%H:%M:%S')
|
||||
|
||||
key = f'stop_id:{update.stop_id}'
|
||||
if update.stop_id in data_stop:
|
||||
if key in data_stop:
|
||||
data_stop[key].append(trip_data)
|
||||
else:
|
||||
data_stop[key] = [ trip_data ]
|
||||
|
|
Loading…
Reference in New Issue