Spaces:
Sleeping
Sleeping
Ankush Rana
commited on
Commit
·
259e7ee
1
Parent(s):
001ce51
fix bug
Browse files
tools.py
CHANGED
@@ -378,7 +378,7 @@ class modify_reservation(ToolBase):
|
|
378 |
return f"There is no reservations with the id: {reservation_id}"
|
379 |
|
380 |
if new_room_type or guests:
|
381 |
-
rooms = [room for room in json_data["
|
382 |
if len(rooms) == 0:
|
383 |
return f"There is no room exists with room type {new_room_type}"
|
384 |
|
|
|
378 |
return f"There is no reservations with the id: {reservation_id}"
|
379 |
|
380 |
if new_room_type or guests:
|
381 |
+
rooms = [room for room in json_data["room_types"] if new_room_type in room["type"]]
|
382 |
if len(rooms) == 0:
|
383 |
return f"There is no room exists with room type {new_room_type}"
|
384 |
|