Do not add locks to home page (or any other page)
All checks were successful
docker-image / docker (push) Successful in 1m20s

This commit is contained in:
Stefan Bethke 2025-05-30 13:07:37 +02:00
commit 3a2d1869c0
2 changed files with 2 additions and 3 deletions

View file

@ -61,9 +61,9 @@
fetch("/api/lock").then((res) => res.json()).then((data) => {
if (!data.authorized)
return;
let locks = document.getElementById("locks");
if (locks === null || !data.authorized)
return;
for (let lock of data.locks) {
let lock_line = document.createElement("div");
lock_line.id = `lock__line__${lock.id}`;

View file

@ -2,6 +2,5 @@
{% block page_title %}CCCHH Dooris{% endblock %}
{% block page_body %}
<p>Shows the status of the logs</p>
<div id="locks"></div>
<a href="operate">Lock or unlock a door</a>
{% endblock %}