From f62dd6e97ffd0407eacf8bcfd78e3614299bd38a Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 15 Feb 2019 10:33:40 +0100 Subject: [PATCH] [FIX][WIP] 'avail' is not a field name --- .../models/hotel_room_type_availability/exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py b/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py index 23a734764..822fbd83e 100644 --- a/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py +++ b/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py @@ -31,7 +31,7 @@ class HotelRoomTypeAvailabilityExporter(Component): date_dt = fields.Date.from_string(channel_room_type_avail.date) days.append({ 'date': date_dt.strftime(DEFAULT_WUBOOK_DATE_FORMAT), - 'avail': channel_room_type_avail.avail, + 'avail': channel_room_type_avail.max_avail, # TODO max_avail __or__ quota ¿? 'no_ota': channel_room_type_avail.no_ota and 1 or 0, # 'booked': room_type_avail.booked and 1 or 0, })