From c78c7759ead103dff547fe82d212da851a5db121 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Tue, 12 Sep 2017 18:24:29 +0200 Subject: [PATCH] DASH: serve complete local state together with history --- python_suite/dashboard/dashboard.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python_suite/dashboard/dashboard.py b/python_suite/dashboard/dashboard.py index 661cc2c..751656d 100755 --- a/python_suite/dashboard/dashboard.py +++ b/python_suite/dashboard/dashboard.py @@ -201,8 +201,11 @@ def api_history(name): for row in history: row[0] *= 1000. pv_index = CONFIG['PV_lookup'][name] - precision = CONFIG['PVs'][pv_index]['precision'] - return {'history': history, 'precision': precision} + pv = CONFIG['PVs'][pv_index] + precision = pv['precision'] + ret_dict = {'history': history} + ret_dict.update(pv) + return ret_dict @route('/static/') def static_content(path): -- 2.43.0