Skip to content

Commit

Permalink
Uses non-blank email instead of non-blank first_name for hotel info c…
Browse files Browse the repository at this point in the history
…riteria, also filters out refunded badges
  • Loading branch information
RobRuana committed Aug 31, 2018
1 parent 784cd5d commit 03531dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uber/site_sections/hotel_assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def requested_hotel_info(self, out, session):
eligibility_filters.append(Attendee.registered <= c.PREREG_HOTEL_ELIGIBILITY_CUTOFF)

hotel_query = session.query(Attendee).filter(*eligibility_filters).filter(
Attendee.badge_status != c.INVALID_STATUS,
Attendee.first_name != '',
Attendee.badge_status.notin_([c.INVALID_STATUS, c.REFUNDED_STATUS]),
Attendee.email != '',
) # noqa: E712

attendees_without_hotel_pin = hotel_query.filter(*eligibility_filters).filter(or_(
Expand Down

0 comments on commit 03531dc

Please sign in to comment.