This is an automated email from the ASF dual-hosted git repository.

rkk pushed a commit to branch SDAP-467-b
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 00a1dbac5c45618fa9f2b675c42fc45b1d83340a
Author: rileykk <[email protected]>
AuthorDate: Wed Jul 5 13:34:54 2023 -0700

    Fix for custom results type for cdmslist query
---
 analysis/webservice/algorithms/doms/DatasetListQuery.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/analysis/webservice/algorithms/doms/DatasetListQuery.py 
b/analysis/webservice/algorithms/doms/DatasetListQuery.py
index bf3c07f..7c40d18 100644
--- a/analysis/webservice/algorithms/doms/DatasetListQuery.py
+++ b/analysis/webservice/algorithms/doms/DatasetListQuery.py
@@ -120,4 +120,14 @@ class 
DomsDatasetListQueryHandler(BaseDomsHandler.BaseDomsQueryCalcHandler):
             "insitu": insituList
         }
 
-        return NexusResults(results=values)
+        return DatasetListResults(results=values)
+
+
+class DatasetListResults(NexusResults):
+    def __init__(self, results=None):
+        NexusResults.__init__(self, results=results)
+
+        self.__results = results
+
+    def toJson(self):
+        return json.dumps({'data': self.__results}, indent=4)

Reply via email to