From 4c27c97e6d8b482aac8775f3506647d79c29bccb Mon Sep 17 00:00:00 2001 From: Francisco Sandoval Date: Fri, 15 Dec 2023 15:50:23 -0300 Subject: [PATCH] fix array trayectos --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index efd27c5..5d8fe98 100644 --- a/main.py +++ b/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 ]