this is the only way to tests things

map-with-names
Marek Baczynski 9 months ago
parent 34d58dcfc9
commit 8818b7d801

@ -211,8 +211,9 @@ def query(filter_dummy, query):
r.close()
return json.dumps(l)
@app.route(baseURL+'/map/<containerID>/<annotate>', defaults={'annotate': None})
def getMap(containerID, annotate):
@app.route(baseURL+'/map/<containerID>')
@app.route(baseURL+'/map/<containerID>/<annotate>')
def getMap(containerID, annotate=None):
s = 'select map, overlay from containers where id = :id;'
r = db_engine.execute(text(s), id=containerID)
l = []

Loading…
Cancel
Save