Skip to content
Snippets Groups Projects
Commit 446ffe69 authored by Nelly Barret's avatar Nelly Barret
Browse files

[M] fixed assessment mode

parent aca3bfc6
No related branches found
No related tags found
No related merge requests found
...@@ -220,6 +220,18 @@ def get_iris_from_name(): ...@@ -220,6 +220,18 @@ def get_iris_from_name():
return json.dumps({'status': 'OK', 'geojson': iris}) return json.dumps({'status': 'OK', 'geojson': iris})
@app.route('/getEnvironmentValues', methods=["GET"])
def get_environment_values():
variables_with_values = {}
for env in ENVIRONMENT_VALUES:
temp = []
for key in ENVIRONMENT_VALUES[env]:
temp.append(ENVIRONMENT_VALUES[env][key]) # get english values
variables_with_values[env] = temp
return json.dumps(variables_with_values) # {"result": variables_with_values}
@app.route('/add_iris_to_csv', methods=["GET"]) @app.route('/add_iris_to_csv', methods=["GET"])
def add_iris_to_csv(): def add_iris_to_csv():
""" """
......
...@@ -104,7 +104,7 @@ function displayPopup(e) { ...@@ -104,7 +104,7 @@ function displayPopup(e) {
let env_values = environment_variables[env] let env_values = environment_variables[env]
let div_container = $("<div>").prop("id", "assessment"+env) let div_container = $("<div>").prop("id", "assessment"+env)
let list_values = $("<select>"); let list_values = $("<select>");
for(let value in env_values) { list_values.append($("<option>").prop("value", env_values[value]).text(env_values[value])) } for(let value in env_values) { console.log(value); list_values.append($("<option>").prop("value", env_values[value]).text(env_values[value])) }
div_container.append(env).append(list_values) div_container.append(env).append(list_values)
divInformation.append(div_container) divInformation.append(div_container)
} }
......
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