Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
a247954
1
Parent(s):
a9c1303
fix
Browse files
app/dialogflow/services/dialog_service.py
CHANGED
|
@@ -118,7 +118,7 @@ class DialogService:
|
|
| 118 |
return False
|
| 119 |
seats = await self.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
| 120 |
for seat_data in seats:
|
| 121 |
-
if seat_data['chair'] == seat and seat_data['bookStatus'] == 0 :
|
| 122 |
return True
|
| 123 |
return False
|
| 124 |
|
|
|
|
| 118 |
return False
|
| 119 |
seats = await self.seats_trip(route_id, trip_id, departure_date, departure_time, kind)
|
| 120 |
for seat_data in seats:
|
| 121 |
+
if seat_data['chair'].lower() == seat.lower() and seat_data['bookStatus'] == 0 :
|
| 122 |
return True
|
| 123 |
return False
|
| 124 |
|