From 97f9a0ae6ace04082b55f545a7c7a69bba2ec0a6 Mon Sep 17 00:00:00 2001 From: Chandra Y Date: Wed, 28 Aug 2024 18:34:13 -0500 Subject: [PATCH] Hotfix: Empty Registration Status --- apcd-cms/src/apps/utils/registrations_data_formatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apcd-cms/src/apps/utils/registrations_data_formatting.py b/apcd-cms/src/apps/utils/registrations_data_formatting.py index 8abf8300..145a6a2c 100644 --- a/apcd-cms/src/apps/utils/registrations_data_formatting.py +++ b/apcd-cms/src/apps/utils/registrations_data_formatting.py @@ -12,7 +12,7 @@ def _set_registration(reg, reg_ents, reg_conts): city=reg[9], state=reg[10] ), - 'reg_status': reg[5].title(), + 'reg_status': reg[5].title() if reg[5] else None, 'reg_id': reg[0], 'year': reg[12], 'view_modal_content': _set_modal_content(reg, reg_ents, reg_conts, org_types)