Commit d2e3772f authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

history/with-delta: restrict a bit more (should have no observable effect)

parent 8a499cfa4071
...@@ -233,8 +233,12 @@ class timeseries(SeriesServices): ...@@ -233,8 +233,12 @@ class timeseries(SeriesServices):
to_date = None to_date = None
if deltabefore is not None: if deltabefore is not None:
from_date = idate - deltabefore from_date = idate - deltabefore
from_date = from_value_date
if deltaafter is not None: if deltaafter is not None:
to_date = idate + deltaafter to_date = idate + deltaafter
to_date = to_value_date
series.append(( series.append((
idate, idate,
snapshot.find( snapshot.find(
Markdown is supported
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