diff --git a/backend/services/office_hours/office_hours.py b/backend/services/office_hours/office_hours.py index 849d2e64..5bdb5d3b 100644 --- a/backend/services/office_hours/office_hours.py +++ b/backend/services/office_hours/office_hours.py @@ -158,15 +158,13 @@ def get_office_hour_get_help_overview( active_ticket = active_tickets[0] if len(active_tickets) > 0 else None # Find queue position - queue_tickets = ( - sorted( - [ - ticket - for ticket in queue_entity.tickets - if ticket.state == TicketState.QUEUED - ], - key=lambda ticket: ticket.created_at, - ), + queue_tickets: list[OfficeHoursTicketEntity] = sorted( + [ + ticket + for ticket in queue_entity.tickets + if ticket.state == TicketState.QUEUED + ], + key=lambda ticket: ticket.created_at, ) queue_position = (