From 92db190b8a802ff9356f16b3e152d33f18ea4d48 Mon Sep 17 00:00:00 2001 From: Kris Jordan Date: Fri, 8 Mar 2024 10:26:55 -0500 Subject: [PATCH] Rooms reserved oh hotfix pt2 (#325) * Remove nonreservable room (for now) from policy * Remove dangling comment --- backend/services/coworking/policy.py | 30 +++++++++++------------ backend/services/coworking/reservation.py | 1 - 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/backend/services/coworking/policy.py b/backend/services/coworking/policy.py index b43236559..28ef6a178 100644 --- a/backend/services/coworking/policy.py +++ b/backend/services/coworking/policy.py @@ -77,55 +77,55 @@ def office_hours(self, date: datetime): 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [ - (time(hour=16, minute=00), time(hour=17, minute=30)) - ] + # 'SN141' : [ + # (time(hour=16, minute=00), time(hour=17, minute=30)) + # ] } elif day == TUESDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [ - (time(hour=10, minute=00), time(hour=11, minute=00)) - ] + # 'SN141' : [ + # (time(hour=10, minute=00), time(hour=11, minute=00)) + # ] } elif day == WEDNESDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [ - (time(hour=10, minute=00), time(hour=11, minute=00)) - ] + # 'SN141' : [ + # (time(hour=10, minute=00), time(hour=11, minute=00)) + # ] } elif day == THURSDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [] + # 'SN141' : [] } elif day == FRIDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [ - (time(hour=10, minute=00), time(hour=11, minute=00)) - ] + # 'SN141' : [ + # (time(hour=10, minute=00), time(hour=11, minute=00)) + # ] } elif day == SATURDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [] + # 'SN141' : [] } elif day == SUNDAY: return { 'SN135' : [], 'SN137' : [], 'SN139' : [], - 'SN141' : [] + # 'SN141' : [] } \ No newline at end of file diff --git a/backend/services/coworking/reservation.py b/backend/services/coworking/reservation.py index 30a5fe69f..46fa4101e 100644 --- a/backend/services/coworking/reservation.py +++ b/backend/services/coworking/reservation.py @@ -522,7 +522,6 @@ def _get_reservable_rooms(self) -> Sequence[RoomDetails]: rooms = ( self._session.query(RoomEntity) - # .where(RoomEntity.id.not_in(self._policy_svc.non_reservable_rooms())) .where(RoomEntity.reservable == True) .order_by(RoomEntity.id) .all()