summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Metzger2020-06-25 14:51:05 +0200
committerLukas Metzger2020-06-25 14:51:05 +0200
commit590db7bead73365fff9fe51eecdc9eca1a7a1ce9 (patch)
tree8c275a879e214d1c4c472f584230f7cfb73f43cf
parentFixes for machines (diff)
downloadbwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.tar.gz
bwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.tar.xz
bwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.zip
Fexes for locations
-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: