Skip to content

Commit

Permalink
Merge pull request #67 from bcgov/feature/SRIS-7
Browse files Browse the repository at this point in the history
fix incorrect-handling of No selections for protocol19Exemptions attribute
  • Loading branch information
vividroyjeong committed Aug 16, 2024
2 parents 42027fc + 60d4843 commit 5a4e72a
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 5a4e72a

Please sign in to comment.