Spaces:
Running
Running
OnlyBiggg
commited on
Commit
·
2ac734d
1
Parent(s):
57dd5c9
fix
Browse files- app/api/routes.py +1 -0
app/api/routes.py
CHANGED
@@ -227,6 +227,7 @@ async def booking_trip(request: Request) -> Response:
|
|
227 |
route = f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}"
|
228 |
if trip["route"] and route not in routes_name:
|
229 |
routes_name.append(f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}")
|
|
|
230 |
trips.append({
|
231 |
"route_name": f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}",
|
232 |
"route_id": trip["route_id"],
|
|
|
227 |
route = f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}"
|
228 |
if trip["route"] and route not in routes_name:
|
229 |
routes_name.append(f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}")
|
230 |
+
print(f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}")
|
231 |
trips.append({
|
232 |
"route_name": f"{trip['route']['origin_hub_name']} => {trip['route']['dest_hub_name']}",
|
233 |
"route_id": trip["route_id"],
|