From 918454e48f97e3eb02d9bb67e50359f268651c31 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Sun, 12 Jan 2025 09:29:28 -0500 Subject: [PATCH] Delete unassigned converted dealers We weren't actually doing anything to unassigned badges when a dealer group was converted. The fact that we deleted the group they were in thus automatically kicked them to "New" status which made them count against the cap. This is not desired. --- uber/site_sections/dealer_admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uber/site_sections/dealer_admin.py b/uber/site_sections/dealer_admin.py index e50502835..61886e30e 100644 --- a/uber/site_sections/dealer_admin.py +++ b/uber/site_sections/dealer_admin.py @@ -120,6 +120,8 @@ def decline_and_convert_dealer_group(session, group, status=c.DECLINED, admin_no elif not delete_group: attendee.badge_status = c.INVALID_GROUP_STATUS attendee.paid = c.NOT_PAID + else: + session.delete(attendee) if delete_group: attendee.group = None