Skip to content

Commit

Permalink
Merge pull request #180 from magfest/jasonspriggs-patch-1
Browse files Browse the repository at this point in the history
Update hotels.py
  • Loading branch information
bitbyt3r authored Dec 5, 2023
2 parents 5988040 + dffb82c commit 66bb956
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/tuber/api/hotels.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def request_search(event, hotel_block):
reqs = db.query(HotelRoomRequest).filter(
HotelRoomRequest.event == event,
HotelRoomRequest.hotel_block == hotel_block,
HotelRoomRequest.declined != True,
HotelRoomRequest.room_night_requests.any(and_(RoomNightRequest.requested, not_(RoomNightRequest.id.in_(assigned_nights))))
).join(Badge, Badge.id == HotelRoomRequest.badge).filter(
or_(Badge.search_name.contains(g.data['search_term'].lower()), func.lower(
Expand Down

0 comments on commit 66bb956

Please sign in to comment.