Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
db895c2
1
Parent(s):
11749d8
fix: seat trip
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -88,6 +88,9 @@ class DialogService:
|
|
| 88 |
if params is None:
|
| 89 |
return []
|
| 90 |
response = await api.get(api_base=settings.API_BASE_URL_VATO, endpoint=f"/seats/{route_id}/{trip_id}" , params=params)
|
|
|
|
|
|
|
|
|
|
| 91 |
seats = response["data"]
|
| 92 |
return seats
|
| 93 |
except Exception as e:
|
|
|
|
| 88 |
if params is None:
|
| 89 |
return []
|
| 90 |
response = await api.get(api_base=settings.API_BASE_URL_VATO, endpoint=f"/seats/{route_id}/{trip_id}" , params=params)
|
| 91 |
+
print(response)
|
| 92 |
+
if response.get("data"):
|
| 93 |
+
return []
|
| 94 |
seats = response["data"]
|
| 95 |
return seats
|
| 96 |
except Exception as e:
|