From 0b1a2eae6ad9058e23d4408e2070311e0d73ee59 Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 23 Sep 2019 18:49:18 +0200 Subject: [PATCH] [FIX] HOT FIX guests in Booking.com reservations --- .../models/hotel_reservation/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py index 1f6b48ef6..e507f62bb 100644 --- a/hotel_channel_connector_wubook/models/hotel_reservation/importer.py +++ b/hotel_channel_connector_wubook/models/hotel_reservation/importer.py @@ -148,7 +148,7 @@ class HotelReservationImporter(Component): # Parse 'ancyllary' info if 'ancillary' in broom: if 'guests' in broom['ancillary']: - persons = broom['ancillary']['guests'] + persons = min(broom['ancillary']['guests'], persons) if 'tax_inclusive' in broom['ancillary'] and not broom['ancillary']['tax_inclusive']: _logger.info("--- Incoming Reservation without taxes included!") tax_inclusive = False