Spaces:
Sleeping
Sleeping
OnlyBiggg commited on
Commit ·
7f38eee
1
Parent(s): 19d94a7
fix
Browse files- app/api/routes.py +3 -2
app/api/routes.py
CHANGED
|
@@ -298,12 +298,13 @@ async def is_valid_select_trip(request: Request) -> Response:
|
|
| 298 |
for trip in trip_list:
|
| 299 |
if trip["route_name"] == raw_input:
|
| 300 |
route_id = trip["route_id"]
|
|
|
|
| 301 |
break
|
| 302 |
-
|
| 303 |
parameters = {
|
| 304 |
"is_valid_trip": True,
|
| 305 |
"route_name": raw_input,
|
| 306 |
-
"route_id": route_id
|
| 307 |
}
|
| 308 |
else:
|
| 309 |
parameters = {
|
|
|
|
| 298 |
for trip in trip_list:
|
| 299 |
if trip["route_name"] == raw_input:
|
| 300 |
route_id = trip["route_id"]
|
| 301 |
+
print(route_id)
|
| 302 |
break
|
| 303 |
+
|
| 304 |
parameters = {
|
| 305 |
"is_valid_trip": True,
|
| 306 |
"route_name": raw_input,
|
| 307 |
+
"route_id": route_id
|
| 308 |
}
|
| 309 |
else:
|
| 310 |
parameters = {
|