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
pony
tshistory
Commits
535fbd69b86d
Commit
d2e3772f
authored
Jul 11, 2019
by
Aurélien Campéas
Browse files
history/with-delta: restrict a bit more (should have no observable effect)
parent
8a499cfa4071
Changes
1
Hide whitespace changes
Inline
Side-by-side
tshistory/tsio.py
View file @
535fbd69
...
@@ -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
else
:
from_date
=
from_value_date
if
deltaafter
is
not
None
:
if
deltaafter
is
not
None
:
to_date
=
idate
+
deltaafter
to_date
=
idate
+
deltaafter
else
:
to_date
=
to_value_date
series
.
append
((
series
.
append
((
idate
,
idate
,
snapshot
.
find
(
snapshot
.
find
(
...
...
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