OnlyBiggg commited on
Commit
b1c359a
·
1 Parent(s): f881432
app/dialogflow/api/v1/dialogflow.py CHANGED
@@ -23,7 +23,7 @@ async def search_origin_office(request: Request):
23
 
24
  raw_departure_city = parameters.get("departure_city", None)
25
  origin_office = parameters.get("origin_office")
26
-
27
  departure_city = None
28
  if origin_office and raw_departure_city is None:
29
  departure_city = await dialog_service.get_origin_city_from_office(origin_office)
 
23
 
24
  raw_departure_city = parameters.get("departure_city", None)
25
  origin_office = parameters.get("origin_office")
26
+ print(origin_office)
27
  departure_city = None
28
  if origin_office and raw_departure_city is None:
29
  departure_city = await dialog_service.get_origin_city_from_office(origin_office)
app/dialogflow/services/dialog_service.py CHANGED
@@ -182,7 +182,6 @@ class DialogService:
182
  response = await api.get('search/metadata/pickup-points', params=params)
183
  if response.get("status") == 200:
184
  data = response.get("data")
185
- print(data)
186
  return data
187
  return {}
188
 
@@ -230,7 +229,6 @@ class DialogService:
230
 
231
  async def get_origin_city_from_office(self, origin_office: str):
232
  data = await self.search_pickup_points(origin=origin_office)
233
- print(data)
234
  if data.get("origin"):
235
  origins = data["origin"]
236
  for origin in origins:
 
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
186
  return {}
187
 
 
229
 
230
  async def get_origin_city_from_office(self, origin_office: str):
231
  data = await self.search_pickup_points(origin=origin_office)
 
232
  if data.get("origin"):
233
  origins = data["origin"]
234
  for origin in origins: