Skip to content
Snippets Groups Projects
Commit cb0db0b7 authored by Christoffer Stoll's avatar Christoffer Stoll
Browse files

Merge branch 'development' into 'master'

bug: a station with only private spo's are still included

See merge request !16
parents ce53c865 087baffd
No related branches found
No related tags found
2 merge requests!18Master,!16bug: a station with only private spo's are still included
......@@ -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,
......
......@@ -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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment