summaryrefslogtreecommitdiffstats
path: root/dash
diff options
context:
space:
mode:
Diffstat (limited to 'dash')
-rw-r--r--dash/pages/locations.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dash/pages/locations.py b/dash/pages/locations.py
index c5ed558..9125ba0 100644
--- a/dash/pages/locations.py
+++ b/dash/pages/locations.py
@@ -95,8 +95,9 @@ def make_content_all(days, date):
hoverinfo='label+text+percent',
direction='clockwise'
))
+ numElements = len([item['ip'] for item in data if item['ip'] == sat])
figure.update_layout(
- title_text = '<sub>Sessiontime per Location</sub><br>' + sat,
+ title_text = '<sub>Sessiontime per Location (Total: {})</sub><br>{}'.format(numElements, sat),
showlegend=False
)
if len([item for item in data if item['ip'] == sat and item['totalSessionTime'] > 0]) > 0: