Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pmall
apli_pmall
Commits
52add09c
Commit
52add09c
authored
May 12, 2020
by
Samuel
Browse files
fix bug date < instead of <=
parent
5592838f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dashApp/app_PMall.py
View file @
52add09c
...
...
@@ -321,7 +321,7 @@ def update_datatable(stations, species, sources, options, years_range):
if
(
len
(
species
)
+
len
(
sources
))
==
0
:
print
(
"DT: no specie nor sources"
)
return
dftmp
.
to_dict
(
"records"
)
if
len
(
stations
)
==
0
:
if
len
(
stations
)
==
0
:
print
(
"DT: no station"
)
return
dftmp
.
to_dict
(
"records"
)
...
...
@@ -385,7 +385,7 @@ def update_datatable(stations, species, sources, options, years_range):
if
dateend
>
first_and_last_values
.
max
():
dateend
=
first_and_last_values
.
max
()
dftmp
=
dftmp
[(
datestart
<
dftmp
[
"Date"
])
&
(
dftmp
[
"Date"
]
<
dateend
)]
dftmp
=
dftmp
[(
datestart
<=
dftmp
[
"Date"
])
&
(
dftmp
[
"Date"
]
<=
dateend
)]
return
dftmp
.
to_dict
(
"records"
)
...
...
Write
Preview
Supports
Markdown
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