From ce709c66610661445c3b339ec055be62d9f6efb5 Mon Sep 17 00:00:00 2001 From: Israel Figueroa Date: Thu, 6 Feb 2025 14:40:11 -0300 Subject: [PATCH] now --- tpmcqr_service/api/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpmcqr_service/api/utils.py b/tpmcqr_service/api/utils.py index 2dd4289..b4c5bf6 100644 --- a/tpmcqr_service/api/utils.py +++ b/tpmcqr_service/api/utils.py @@ -181,7 +181,7 @@ def obtiene_shape_paradas(id_shape, id_trip): for item in Shapes.query.filter(Shapes.id_shape==id_shape).order_by(Shapes.shape_pt_sequence.asc()).all(): shape.append({'lat': item.shape_pt_lat, 'lon': item.shape_pt_lon}) - for item in Paraderos.query.join(Stops).filter(Stops.id_trip==id_trip).distinct(Paraderos.id_paradero).order_by(Stops.stop_sequence.asc()).all(): + for item in Paraderos.query.join(Stops).filter(Stops.id_trip==id_trip).distinct(Paraderos.id_paradero).order_by(Paraderos.id_paradero.asc(), Stops.stop_sequence.asc()).all(): paradas.append({'name': item.stop_name, 'lat': item.stop_lat, 'lon': item.stop_lon}) return shape, paradas