You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by sk...@apache.org on 2022/07/13 17:32:11 UTC
[incubator-sdap-nexus] 01/01: Fix bug where metadata links fail for AWS insitu datasets
This is an automated email from the ASF dual-hosted git repository.
skperez pushed a commit to branch csv-bugfix
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
commit 21e33bc24c030ff57b0dfa6ec7198420abb0ba7c
Author: skorper <st...@gmail.com>
AuthorDate: Wed Jul 13 10:28:38 2022 -0700
Fix bug where metadata links fail for AWS insitu datasets
---
analysis/webservice/algorithms/doms/BaseDomsHandler.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/analysis/webservice/algorithms/doms/BaseDomsHandler.py b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
index bb32146..aa53a34 100644
--- a/analysis/webservice/algorithms/doms/BaseDomsHandler.py
+++ b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
@@ -200,11 +200,11 @@ class DomsCSVFormatter:
for match in primaryValue['matches']:
platforms.add(match['platform'])
- # insituDatasets = params["matchup"].split(",")
insituDatasets = params["matchup"]
insituLinks = set()
for insitu in insituDatasets:
- insituLinks.add(config.METADATA_LINKS[insitu])
+ if insitu in config.METADATA_LINKS:
+ insituLinks.add(config.METADATA_LINKS[insitu])
global_attrs = [