Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
50821bb
1
Parent(s):
c27b2c2
fix
Browse files
app/dialogflow/api/v1/dialogflow.py
CHANGED
|
@@ -26,7 +26,6 @@ async def search_origin_office(request: Request):
|
|
| 26 |
departure_city = None
|
| 27 |
if origin_office and raw_departure_city is None:
|
| 28 |
departure_city = await dialog_service.get_origin_city_from_office(origin_office)
|
| 29 |
-
print(departure_city)
|
| 30 |
parameters = {
|
| 31 |
"departure_city": departure_city
|
| 32 |
}
|
|
|
|
| 26 |
departure_city = None
|
| 27 |
if origin_office and raw_departure_city is None:
|
| 28 |
departure_city = await dialog_service.get_origin_city_from_office(origin_office)
|
|
|
|
| 29 |
parameters = {
|
| 30 |
"departure_city": departure_city
|
| 31 |
}
|
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -178,9 +178,8 @@ class DialogService:
|
|
| 178 |
"session_id": session_id,
|
| 179 |
}.items() if v is not None
|
| 180 |
}
|
| 181 |
-
print(params)
|
| 182 |
|
| 183 |
-
response = await api.get('search/metadata/pickup-points', params=params)
|
| 184 |
if response.get("status") == 200:
|
| 185 |
data = response.get("data")
|
| 186 |
return data
|
|
|
|
| 178 |
"session_id": session_id,
|
| 179 |
}.items() if v is not None
|
| 180 |
}
|
|
|
|
| 181 |
|
| 182 |
+
response = await api.get('/search/metadata/pickup-points', params=params)
|
| 183 |
if response.get("status") == 200:
|
| 184 |
data = response.get("data")
|
| 185 |
return data
|