Skip to content

Commit

Permalink
Rooms reserved oh hotfix pt2 (#325)
Browse files Browse the repository at this point in the history
* Remove nonreservable room (for now) from policy

* Remove dangling comment
  • Loading branch information
KrisJordan authored Mar 8, 2024
1 parent 4efba6d commit 92db190
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
30 changes: 15 additions & 15 deletions backend/services/coworking/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' : []
}
1 change: 0 additions & 1 deletion backend/services/coworking/reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 92db190

Please sign in to comment.