From 60d48436ac27c64d81efb48cac1d40a69b6fb3a1 Mon Sep 17 00:00:00 2001 From: Roy Jeong Date: Fri, 16 Aug 2024 15:39:03 -0700 Subject: [PATCH] fix incorrect-handling of No selections for protocol19Exemptions attribute --- helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.py b/helper.py index 3ad8064..581cc6a 100644 --- a/helper.py +++ b/helper.py @@ -682,11 +682,11 @@ def map_source_site(_submission): _src_dic['soilStorageType'] = _submission.get(chefs_src_param('soilStorageType')) if _submission.get(chefs_src_param('exemptionFromProtocol19Apply')) is not None: - if _submission.get(chefs_src_param('exemptionFromProtocol19Apply')): + if convert_to_yes_no(_submission.get(chefs_src_param('exemptionFromProtocol19Apply'))) == 'Yes': if _submission.get(chefs_src_param('protocol19AppliedExemptions')) is not None: _src_dic['protocol19Exemptions'] = create_source_site_protocol_19_exemptions(_submission, chefs_src_param('protocol19AppliedExemptions')) else: - _src_dic['protocol19Exemptions'] = 'no' + _src_dic['protocol19Exemptions'] = 'No' create_soil_volumes( _submission,