Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
predihood
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duchateau Fabien
predihood
Commits
446ffe69
Commit
446ffe69
authored
4 years ago
by
Nelly Barret
Browse files
Options
Downloads
Patches
Plain Diff
[M] fixed assessment mode
parent
aca3bfc6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
predihood/main.py
+12
-0
12 additions, 0 deletions
predihood/main.py
predihood/static/js/carto.js
+1
-1
1 addition, 1 deletion
predihood/static/js/carto.js
with
13 additions
and
1 deletion
predihood/main.py
+
12
−
0
View file @
446ffe69
...
@@ -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
():
"""
"""
...
...
This diff is collapsed.
Click to expand it.
predihood/static/js/carto.js
+
1
−
1
View file @
446ffe69
...
@@ -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
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment