Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
74d5e02
1
Parent(s):
e86e66c
fix /seat
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -79,7 +79,7 @@ class DialogService:
|
|
| 79 |
return False
|
| 80 |
seats = await self.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
| 81 |
for seat_data in seats:
|
| 82 |
-
if seat_data['chair'] == seat and seat_data['bookStatus'] ==
|
| 83 |
return True
|
| 84 |
return False
|
| 85 |
|
|
|
|
| 79 |
return False
|
| 80 |
seats = await self.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
| 81 |
for seat_data in seats:
|
| 82 |
+
if seat_data['chair'] == seat and seat_data['bookStatus'] == 0 :
|
| 83 |
return True
|
| 84 |
return False
|
| 85 |
|