diff options
author | Lukas Metzger | 2020-06-25 14:51:05 +0200 |
---|---|---|
committer | Lukas Metzger | 2020-06-25 14:51:05 +0200 |
commit | 590db7bead73365fff9fe51eecdc9eca1a7a1ce9 (patch) | |
tree | 8c275a879e214d1c4c472f584230f7cfb73f43cf /dash | |
parent | Fixes for machines (diff) | |
download | bwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.tar.gz bwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.tar.xz bwlp-statistics-590db7bead73365fff9fe51eecdc9eca1a7a1ce9.zip |
Fexes for locations
Diffstat (limited to 'dash')
-rw-r--r-- | dash/pages/locations.py | 3 |
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: |