diff --git a/funnel/models/sync_ticket.py b/funnel/models/sync_ticket.py index ad3cf1f17..14debd231 100644 --- a/funnel/models/sync_ticket.py +++ b/funnel/models/sync_ticket.py @@ -376,7 +376,7 @@ def checkin_list(cls, ticket_event: TicketEvent) -> list: # TODO: List type? TicketEventParticipant, TicketParticipant.id == TicketEventParticipant.ticket_participant_id, ) - .join(EmailAddress, EmailAddress.id == TicketParticipant.email_address_id) + .outerjoin(EmailAddress, EmailAddress.id == TicketParticipant.email_address_id) .outerjoin( SyncTicket, TicketParticipant.id == SyncTicket.ticket_participant_id ) diff --git a/funnel/views/ticket_participant.py b/funnel/views/ticket_participant.py index 126d300b6..124503703 100644 --- a/funnel/views/ticket_participant.py +++ b/funnel/views/ticket_participant.py @@ -96,7 +96,7 @@ def ticket_participant_checkin_data(ticket_participant, project, ticket_event): 'puuid_b58': puuid_b58, 'fullname': ticket_participant.fullname, 'company': ticket_participant.company, - 'email': mask_email(ticket_participant.email), + 'email': mask_email(ticket_participant.email) if ticket_participant.email else None, 'badge_printed': ticket_participant.badge_printed, 'checked_in': ticket_participant.checked_in, 'ticket_type_titles': ticket_participant.ticket_type_titles,