From 47614019e94e7bddc41472bb9e47909ccff42d5d Mon Sep 17 00:00:00 2001 From: Ajay Gandecha Date: Tue, 12 Nov 2024 14:56:18 -0500 Subject: [PATCH] Remove Comma That Broke Everything (#646) --- backend/services/office_hours/office_hours.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 = (