Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
24c8fcda
Commit
24c8fcda
authored
Apr 24, 2017
by
Alan Mitchell
Browse files
Bug in conversion of time period.
parent
903e04e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bmsapp/reports/basechart.py
bmsapp/reports/basechart.py
+1
-1
No files found.
bmsapp/reports/basechart.py
View file @
24c8fcda
...
...
@@ -177,7 +177,7 @@ class BaseChart(object):
"""
tm_per
=
self
.
request_params
[
'time_period'
]
if
tm_per
!=
"custom"
:
st_ts
=
int
(
time
.
time
())
-
in
t
(
tm_per
)
*
24
*
3600
st_ts
=
int
(
time
.
time
())
-
floa
t
(
tm_per
)
*
24
*
3600
end_ts
=
time
.
time
()
+
3600.0
# adding an hour to be sure all records are caught
else
:
st_date
=
self
.
request_params
[
'start_date'
]
...
...
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