Skip to content

Commit

Permalink
fixes dict indexing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed May 31, 2024
1 parent 3cebea8 commit 585e206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SearchAPI/CMR/Translate/parse_cmr_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def get_s3_urls():

if 'STATIC' in result['processingLevel']:
result['validityStartDate'] = get_val('./Temporal/SingleDateTime')
elif result.get('product_file_id', '').startswith('S1-GUNW') and result['ariaVersion'] is None:
elif result.get('product_file_id', '').startswith('S1-GUNW') and result.get('ariaVersion') is None:
version_unformatted = result.get('granuleName').split('v')[-1]
result['ariaVersion'] = re.sub(r'[^0-9\.]', '', version_unformatted.replace("_", '.'))

Expand Down

0 comments on commit 585e206

Please sign in to comment.