From 18428a46cf3264e7041ee2cc53a52999816e8ada Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 18 May 2022 16:54:37 +0200 Subject: [PATCH] [IMP] pms_api_rest: add ubication in room datamodel and service --- pms_api_rest/datamodels/pms_room.py | 1 + pms_api_rest/services/pms_room_service.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pms_api_rest/datamodels/pms_room.py b/pms_api_rest/datamodels/pms_room.py index 66903df39..987af4c58 100644 --- a/pms_api_rest/datamodels/pms_room.py +++ b/pms_api_rest/datamodels/pms_room.py @@ -18,3 +18,4 @@ class PmsRoomInfo(Datamodel): capacity = fields.Integer(required=False, allow_none=True) shortName = fields.String(required=False, allow_none=True) roomTypeClassId = fields.Integer(required=False, allow_none=True) + ubicationId = fields.Integer(required=False, allow_none=True) diff --git a/pms_api_rest/services/pms_room_service.py b/pms_api_rest/services/pms_room_service.py index 6a7c094ed..9b0d5d210 100644 --- a/pms_api_rest/services/pms_room_service.py +++ b/pms_api_rest/services/pms_room_service.py @@ -52,6 +52,7 @@ class PmsRoomService(Component): capacity=room.capacity, shortName=room.short_name, roomTypeClassId=room.room_type_id.class_id, + ubicationId=room.ubication_id, ) ) return result_rooms