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 ]