]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: fix 'float' not iterable error
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Tue, 10 Oct 2017 12:09:06 +0000 (14:09 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Tue, 10 Oct 2017 12:09:06 +0000 (14:09 +0200)
python_suite/dashboard/views/pv_overview_bootstrap.jinja2

index 4dccb8746a8ccb1e5b8167a45dedad13cd7cb305..3a8cd1e4a78b9f64bb8006486c3acdfc38a00cba 100644 (file)
@@ -35,7 +35,7 @@
                                                        <span class="value">
                                                        {% if 'switch' in PV.classes %}
                                                                <label class="toggle">
-                                                                       <input type="checkbox" disabled readonly {{ 'checked' if 'ON' in PV.value else '' }}>
+                                                                       <input type="checkbox" disabled readonly {{ 'checked' if 'ON' in PV.char_value else '' }}>
                                                                        <span data-unchecked="OFF" data-checked="ON"></span>
                                                                </label>
                                                        {% else %}