Skip to content
Snippets Groups Projects
Commit 69b28076 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

alta.py service connector, switch to dataproducts query instead of observations query

parent a7684ed8
No related branches found
No related tags found
1 merge request!24Esap gateway query
...@@ -217,6 +217,6 @@ STATIC_URL = '/static/' ...@@ -217,6 +217,6 @@ STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# configuration settings that can be requested through the REST API # configuration settings that can be requested through the REST API
VERSION = "ASTRON - version 16 jul 2020" VERSION = "ASTRON - version 21 jul 2020"
CONFIGURATION_DIR = os.path.join(BASE_DIR, 'configuration') CONFIGURATION_DIR = os.path.join(BASE_DIR, 'configuration')
CONFIGURATION_FILE = 'esap_config' CONFIGURATION_FILE = 'esap_config'
\ No newline at end of file
This diff is collapsed.
...@@ -209,10 +209,9 @@ def create_and_run_query(datasets, query_params): ...@@ -209,10 +209,9 @@ def create_and_run_query(datasets, query_params):
# call the 'run_query()' function to execute a query per dataset # call the 'run_query()' function to execute a query per dataset
query_results = run_query(dataset, dataset_name, query) query_results = run_query(dataset, dataset_name, query)
results.append(query_results) results = results + query_results
# extract the array of results
try: try:
return results[0] return results
except: except:
return [] return []
\ No newline at end of file
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</div> </div>
<p class="footer" small>ASTRON - version 16 jul 2020</p> <p class="footer" small>ASTRON - version 21 jul 2020</p>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment