Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bmon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
energy
bmon
Commits
1334d910
Commit
1334d910
authored
Jul 17, 2019
by
Alan Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with blank Dashboard title.
parent
a68174ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bmsapp/reports/dashboard.py
bmsapp/reports/dashboard.py
+8
-1
No files found.
bmsapp/reports/dashboard.py
View file @
1334d910
...
...
@@ -35,9 +35,16 @@ class Dashboard(basechart.BaseChart):
cur_row
=
[]
cur_row_num
=
dash_item
.
row_number
# determine title for Dashboard item
if
dash_item
.
title
is
not
None
and
len
(
dash_item
.
title
)
>
0
:
dash_title
=
dash_item
.
title
elif
dash_item
.
sensor
is
not
None
:
dash_title
=
dash_item
.
sensor
.
sensor
.
title
else
:
dash_title
=
''
new_widget
=
{
'type'
:
dash_item
.
widget_type
,
'timeChartID'
:
basechart
.
TIME_SERIES_CHART_ID
,
'title'
:
dash_
item
.
title
if
len
(
dash_item
.
title
)
or
(
dash_item
.
sensor
is
None
)
else
dash_item
.
sensor
.
sensor
.
title
'title'
:
dash_title
}
if
dash_item
.
sensor
is
not
None
:
...
...
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