diff --git a/api/core/eea/dataflows.py b/api/core/eea/dataflows.py index c2c768ab707cbae624269b88b46b692b99b8fa83..38bb7fe50c9423d224203697cfeea47694989421 100644 --- a/api/core/eea/dataflows.py +++ b/api/core/eea/dataflows.py @@ -226,6 +226,7 @@ class Dataflows: r.phone rphone, r.website rwebsite from networks n, responsible_authorities r where n.responsible_authority_id = r.id + and (select count(*) from sampling_points s_sp, stations s_s where s_sp.station_id = s_s.id and s_s.network_id = n.id and s_sp.private = false) > 0 """) rows = cursor.fetchall() return Dataflows.map_list_of_dict(rows, Network) @@ -253,6 +254,7 @@ class Dataflows: ST_Z(st.geom) altitude, ST_SRID(st.geom) epsg FROM stations st + WHERE (select count(*) from sampling_points s_sp, stations s_s where s_sp.station_id = st.id and s_sp.private = false) > 0 GROUP BY st.id, st.name, diff --git a/api/endpoints/version/routes.py b/api/endpoints/version/routes.py index 6a7ccaef9036f79c1c91758f7b79e61f9164a009..c41ec44bd133b9eacebbf357eb761035019214c8 100644 --- a/api/endpoints/version/routes.py +++ b/api/endpoints/version/routes.py @@ -3,7 +3,7 @@ from flask_jwt_extended import create_access_token import requests version_endpoint = Blueprint('version', __name__) -current_version = "3.0.18" +current_version = "3.0.19" @version_endpoint.route('/api/version', methods=['GET'])