correct schedule setters

This commit is contained in:
Guille 2020-10-22 08:39:12 -04:00
parent b306ecbd3b
commit 351081993a

View File

@ -356,7 +356,7 @@ class Building(CityObject):
occupancy schedules of week days occupancy schedules of week days
:param value: week day schedules :param value: week day schedules
""" """
self._week_day_schedule.append(value) self._week_day_schedule = value
@property @property
def saturday_schedule(self) -> List[ScheduleValue]: def saturday_schedule(self) -> List[ScheduleValue]:
@ -372,7 +372,7 @@ class Building(CityObject):
occupancy schedules of Saturdays occupancy schedules of Saturdays
:param value: Saturday schedules :param value: Saturday schedules
""" """
self._saturday_schedule.append(value) self._saturday_schedule = value
@property @property
def sunday_schedule(self) -> List[ScheduleValue]: def sunday_schedule(self) -> List[ScheduleValue]:
@ -388,4 +388,4 @@ class Building(CityObject):
occupancy schedules of Sundays occupancy schedules of Sundays
:param value: Sunday schedules :param value: Sunday schedules
""" """
self._sunday_schedule.append(value) self._sunday_schedule = value