From 590db7bead73365fff9fe51eecdc9eca1a7a1ce9 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Thu, 25 Jun 2020 14:51:05 +0200 Subject: Fexes for locations --- dash/pages/locations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = 'Sessiontime per Location
' + sat, + title_text = 'Sessiontime per Location (Total: {})
{}'.format(numElements, sat), showlegend=False ) if len([item for item in data if item['ip'] == sat and item['totalSessionTime'] > 0]) > 0: -- cgit v1.2.3-55-g7522