Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-timeseries
Commits
a7a3d180
Commit
a7a3d180
authored
Jun 18, 2021
by
Philippe Bollard
Browse files
Fix GLPI #292194 : Water level à 10 par défaut
parent
d1a31a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/globals.py
View file @
a7a3d180
...
...
@@ -50,7 +50,7 @@ DPI_MIN = 50
DPI_MAX
=
300
# processing constants
WL
=
1
WL
=
1
0
# Old: 1 (GLPI #292194)
WL_MIN
=
-
1000
WL_MAX
=
1000
...
...
apps/utils.py
View file @
a7a3d180
...
...
@@ -41,7 +41,7 @@ from apps.globals import UNITS
from
apps.globals
import
VERSION
from
apps.globals
import
USER_AGENT_TIMESERIES
from
apps.globals
import
WIDTH_MIN
,
WIDTH_MAX
from
apps.globals
import
WL_MIN
,
WL_MAX
from
apps.globals
import
WL
,
WL_MIN
,
WL_MAX
from
apps.globals
import
XTICKS_ROTATION
...
...
@@ -320,7 +320,7 @@ def check_timeseriesplots_parameters(params):
return
error_param
(
params
,
Error
.
WATER_EARTHUNITS
)
if
params
[
"waterlevel"
]
is
None
:
params
[
"waterlevel"
]
=
1.0
params
[
"waterlevel"
]
=
float
(
WL
)
# Old: 1.0 (GLPI #292194)
elif
is_valid_float
(
params
[
"waterlevel"
],
WL_MIN
,
WL_MAX
):
params
[
"waterlevel"
]
=
float
(
params
[
"waterlevel"
])
elif
params
[
"waterlevel"
].
lower
()
==
"none"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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