From c9c69ec5f1eed34ff7ba2d37c962fe7770427534 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Thu, 11 Jun 2026 18:20:36 -0400 Subject: [PATCH] fix(importing): don't overwrite session name when CSV has no session_name column Presentation-only imports that link to sessions by code were silently clearing session names because a missing column hit the else branch. Co-Authored-By: Claude Sonnet 4.6 --- app/routers/event_importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/event_importing.py b/app/routers/event_importing.py index bc0ff72..00f59b5 100644 --- a/app/routers/event_importing.py +++ b/app/routers/event_importing.py @@ -662,7 +662,7 @@ async def event_importing_program_data( event_session_data['event_location_id'] = event_location_id # INSERT and UPDATE the event_location_id in case the session was moved if record.get('session_name'): event_session_data['name'] = record.get('session_name', '').strip() - else: + elif 'session_name' in record: event_session_data['name'] = None # Max length of type_code is 25 characters. We must truncate it.