Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
724c9dc
1
Parent(s):
c98a948
fixed: seat
Browse files
app/dialogflow/api/v1/dialogflow.py
CHANGED
@@ -748,10 +748,8 @@ async def seats_trip(request: Request) -> Response:
|
|
748 |
kind: str = trip.get("seat_type_name")
|
749 |
|
750 |
seats = await dialog_service.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
751 |
-
print(seats)
|
752 |
seats_empty = [ seat for seat in seats if seat["bookStatus"] == 0 ]
|
753 |
seats_empty.sort(key=lambda x: x["chair"])
|
754 |
-
print(seats_empty)
|
755 |
text=["Quý khách vui lòng chọn ghế"]
|
756 |
payload = {}
|
757 |
if seats_empty:
|
|
|
748 |
kind: str = trip.get("seat_type_name")
|
749 |
|
750 |
seats = await dialog_service.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
|
|
751 |
seats_empty = [ seat for seat in seats if seat["bookStatus"] == 0 ]
|
752 |
seats_empty.sort(key=lambda x: x["chair"])
|
|
|
753 |
text=["Quý khách vui lòng chọn ghế"]
|
754 |
payload = {}
|
755 |
if seats_empty:
|