OnlyBiggg commited on
Commit
ca0c5f7
·
1 Parent(s): 7920547
Files changed (1) hide show
  1. app/api/routes.py +1 -1
app/api/routes.py CHANGED
@@ -223,7 +223,7 @@ async def booking_trip(request: Request) -> Response:
223
  for trip in data:
224
  if trip["route"] not in routes_name:
225
  routes_name.append(trip["route"]["name"])
226
- text = " | ".join(map(str, routes_name))
227
  return DialogFlowResponseAPI(text=text)
228
 
229
  text = [f"Hệ thống không tìm thấy tuyến xe **{raw_departure_city}** - **{raw_destination_city}**.\n Quý khách vui lòng thử lại với lộ trình khác hoặc liên hệ Trung tâm tổng đài 1900 6067 để được hỗ trợ."]
 
223
  for trip in data:
224
  if trip["route"] not in routes_name:
225
  routes_name.append(trip["route"]["name"])
226
+ text = [" | ".join(map(str, routes_name))]
227
  return DialogFlowResponseAPI(text=text)
228
 
229
  text = [f"Hệ thống không tìm thấy tuyến xe **{raw_departure_city}** - **{raw_destination_city}**.\n Quý khách vui lòng thử lại với lộ trình khác hoặc liên hệ Trung tâm tổng đài 1900 6067 để được hỗ trợ."]