From: Philipp Klaus Date: Thu, 24 Aug 2017 13:37:07 +0000 (+0200) Subject: DASH: unicode units °C & g/m³ X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=efe6ca45347bbf22ed19bc7c41e1dcd2d1a497c7;p=mvd_epics.git DASH: unicode units °C & g/m³ --- 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():