Spaces:
Sleeping
Sleeping
OnlyBiggg commited on
Commit ·
b2c9d4f
1
Parent(s): 69e4506
fix
Browse files
app/dialogflow/api/v1/dialogflow.py
CHANGED
|
@@ -327,7 +327,7 @@ async def get_trip_list(request: Request) -> Response:
|
|
| 327 |
|
| 328 |
for trip in trip_surrounding_time:
|
| 329 |
if ticket_count <= trip["empty_seat_quantity"]:
|
| 330 |
-
trip_dialogflow.append({"trip_id": trip["id"], "route":f
|
| 331 |
text = ["Quý khách vui lòng lựa chọn chuyến xe\n" + "\n".join(f"{i+1}. {trip["route"]}" for i, trip in enumerate(trip_dialogflow))]
|
| 332 |
payload={
|
| 333 |
"richContent": [
|
|
|
|
| 327 |
|
| 328 |
for trip in trip_surrounding_time:
|
| 329 |
if ticket_count <= trip["empty_seat_quantity"]:
|
| 330 |
+
trip_dialogflow.append({"trip_id": trip["id"], "route":f'{trip["raw_departure_time"]} | {trip["route"]["origin_hub_name"]} => {trip["route"]["dest_hub_name"]}'})
|
| 331 |
text = ["Quý khách vui lòng lựa chọn chuyến xe\n" + "\n".join(f"{i+1}. {trip["route"]}" for i, trip in enumerate(trip_dialogflow))]
|
| 332 |
payload={
|
| 333 |
"richContent": [
|