Commit 52add09c authored by Samuel's avatar Samuel
Browse files

fix bug date < instead of <=

parent 5592838f
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment