Commit 8dd4df0e authored by Kristian Tan's avatar Kristian Tan

scripting fix

parent 05703b64
...@@ -34,14 +34,9 @@ ...@@ -34,14 +34,9 @@
<p> Devices currently in use: <p> Devices currently in use:
{% for pin in pins %} {% for pin in pins %}
{% if pins[pin].state == true %} {% if pins[pin].state == true %}
{% msg = pins[pin].name %} {{ pins[pin].name }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if pins|length == 0 %}
{% msg = "No devices currently in use." %}
{% endif %}
{{ msg }}
</p> </p>
<p> Used today: <p> Used today:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment