added connection status macro and background task scheduling

This commit is contained in:
Bryan Bailey
2022-04-06 22:38:47 -04:00
parent 4f3e0e6feb
commit 4f3d7175f6
16 changed files with 136 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
{% macro toggle_connection_status(status_code) %}
{% if status_code == 200 %}
{{ url_for('static', filename='up.png') }}
{% else %}
{{ url_for('static', filename='down.png') }}
{% endif %}
{% endmacro %}