Skip to content

Commit

Permalink
Fixing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Dec 7, 2023
1 parent 8c0795c commit c905cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/tuber/api/room_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def load_staffers(db, event, hotel_block):
room_nights = db.query(HotelRoomNight).filter(
HotelRoomNight.event == event).all()
requests = db.query(HotelRoomRequest, Badge).join(Badge, Badge.id == HotelRoomRequest.badge).filter(
~HotelRoomRequest.room_night_assignments.any(), HotelRoomRequest.hotel_block == hotel_block, or_(HotelRoomRequest.declined == None, HotelRoomRequest.declined == False).all()
~HotelRoomRequest.room_night_assignments.any(), HotelRoomRequest.hotel_block == hotel_block,
or_(HotelRoomRequest.declined == None, HotelRoomRequest.declined == False)).all()
staffers = []
for request, badge in requests:
staffer = HashNS()
Expand Down

0 comments on commit c905cd5

Please sign in to comment.