You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by rk...@apache.org on 2023/07/07 18:04:23 UTC
[incubator-sdap-nexus] 01/02: Check if matchup param is a list or str
This is an automated email from the ASF dual-hosted git repository.
rkk pushed a commit to branch SDAP-474
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
commit c1744bbf80b8ea44fa3cb486c902b0ae99a22492
Author: rileykk <ri...@jpl.nasa.gov>
AuthorDate: Fri Jul 7 11:00:49 2023 -0700
Check if matchup param is a list or str
---
analysis/webservice/algorithms/doms/BaseDomsHandler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/analysis/webservice/algorithms/doms/BaseDomsHandler.py b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
index 2897e8d..af2e6d3 100644
--- a/analysis/webservice/algorithms/doms/BaseDomsHandler.py
+++ b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
@@ -267,7 +267,7 @@ class DomsCSVFormatter:
{"Global Attribute": "CDMS_DatasetMetadata", "Value": ', '.join(insituLinks)},
{"Global Attribute": "CDMS_primary", "Value": params["primary"]},
- {"Global Attribute": "CDMS_secondary", "Value": ','.join(params['matchup'])},
+ {"Global Attribute": "CDMS_secondary", "Value": ','.join(params['matchup']) if isinstance(params["matchup"], list) else params['matchup']},
{"Global Attribute": "CDMS_ParameterPrimary", "Value": params.get("parameter", "")},
{"Global Attribute": "CDMS_time_to_complete", "Value": details["timeToComplete"]},