Skip to content

Commit

Permalink
fix incorrect-handling of No selections for protocol19Exemptions attr…
Browse files Browse the repository at this point in the history
…ibute
  • Loading branch information
vividroyjeong committed Aug 16, 2024
1 parent 7eb3975 commit 60d4843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60d4843

Please sign in to comment.