WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EnviDat
monitoring-backend
Commits
9c5427a5
Commit
9c5427a5
authored
Jun 20, 2022
by
Rebecca Kurup Buchholz
Browse files
Updated ALL_DISPLAY_VALUES with renamed fields
parent
320a7213
Changes
1
Hide whitespace changes
Inline
Side-by-side
gcnet/util/views_helpers.py
View file @
9c5427a5
...
...
@@ -28,9 +28,9 @@ ALL_DISPLAY_VALUES_STRING = 'multiple'
ALL_DISPLAY_VALUES
=
[
'swin'
,
'swin_maximum'
,
'swout'
,
'sw
out_minimum
'
,
'sw
in_stdev
'
,
'netrad'
,
'netrad_
maximum
'
,
'netrad_
stdev
'
,
'airtemp1'
,
'airtemp1_maximum'
,
'airtemp1_minimum'
,
...
...
@@ -273,6 +273,7 @@ def validate_display_values(parameters, model_class):
# If parameters == ALL_DISPLAY_VALUES_STRING assign display_values to values in returned_parameters
# Else validate parameter(s) passed in URL
def
get_display_values
(
parameters
,
model_class
):
if
parameters
==
ALL_DISPLAY_VALUES_STRING
:
return
ALL_DISPLAY_VALUES
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment