fix array trayectos

master
Francisco Sandoval 2023-12-15 15:50:23 -03:00
parent bf82f2a0b5
commit 4c27c97e6d
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def read_file_proto_x_stop(content):
trip_data["hora_llegada"] = datetime.fromtimestamp(update.arrival.time).strftime('%H:%M:%S') trip_data["hora_llegada"] = datetime.fromtimestamp(update.arrival.time).strftime('%H:%M:%S')
key = f'stop_id:{update.stop_id}' 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) data_stop[key].append(trip_data)
else: else:
data_stop[key] = [ trip_data ] data_stop[key] = [ trip_data ]