summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-01-23 09:54:06 +0800
committeraltaf-creator <dev@altafcreator.com>2026-01-23 09:54:06 +0800
commit55d51d2bdd0ccdfb789bc93c635e2a64c6459ab0 (patch)
tree7d0a3565a9c6e018287e80bc6319c3a5ae68ee8b /backend/main.py
parente34fb9a6eaa41919b4861c80092b551dd2278855 (diff)
debug msg
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/main.py b/backend/main.py
index c0bfe51..396fd4b 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -549,6 +549,7 @@ def override_status(data: OverrideMachineData, response: fastapi.Response, admin
if len(rows) > 0:
if (data.disabled):
machine_status[data.block - 1][data.machine_id - 1] = Status.OUTOFSERVICE
+ print("set machine", data.machine_id, "of block", data.block, "to down", machine_status)
else:
cursor.execute("SELECT * FROM timers WHERE ((block = ?) AND (machine = ?))", (data.block, data.machine_id))
rows = cursor.fetchall()