From efe6ca45347bbf22ed19bc7c41e1dcd2d1a497c7 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Thu, 24 Aug 2017 15:37:07 +0200 Subject: [PATCH] =?utf8?q?DASH:=20unicode=20units=20=C2=B0C=20&=20g/m?= =?utf8?q?=C2=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- python_suite/dashboard/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_suite/dashboard/dashboard.py b/python_suite/dashboard/dashboard.py index 318e5ea..92db225 100755 --- a/python_suite/dashboard/dashboard.py +++ b/python_suite/dashboard/dashboard.py @@ -102,8 +102,8 @@ def cb_value_update(**kwargs): pv['classes'] += ' switch' if pv['value'] is None: pv['value'] = '- disconnected -' pv['unit'] = kwargs['units'] or '' - if pv['unit'] == 'deg C': pv['unit'] = '°C' - if pv['unit'] == 'g/m3': pv['unit'] = 'g/m³' + if pv['unit'] == 'deg C': pv['unit'] = '°C' + if pv['unit'] == 'g/m3': pv['unit'] = 'g/m³' @route('/') def index(): -- 2.43.0