Commit fe48ce72 authored by Kristian Tan's avatar Kristian Tan

Show a message if no devices are running

parent c1dac4d2
......@@ -37,6 +37,7 @@ def main():
@app.route("/<change_pin>")
def toggle_pin(change_pin):
# TODO: change_pin is somethimes favicon.co for some reason? Fix
if change_pin == 'favicon.ico':
pass
......
......@@ -23,6 +23,7 @@
</p>
{% endfor %}
{# {% if message %}#}
{# <h2>{{ message }}</h2>#}
{# {% endif %}#}
......@@ -36,6 +37,9 @@
{{ pins[pin].name }}
{% endif %}
{% endfor %}
{% if len(pins) == 0 %}
No devices currently in use.
</p>
<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