From: Philipp Klaus Date: Tue, 12 Sep 2017 16:24:29 +0000 (+0200) Subject: DASH: serve complete local state together with history X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c78c7759ead103dff547fe82d212da851a5db121;p=mvd_epics.git DASH: serve complete local state together with history --- 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):