From f37e309335f712587db441ab4ce3b4509efcf9c9 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Tue, 2 Dec 2025 17:07:15 +0700 Subject: debug + placeholder --- backend/main.py | 3 +++ frontend/main.js | 2 ++ frontend/timer/index.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 22556d1..4544e82 100644 --- a/backend/main.py +++ b/backend/main.py @@ -165,10 +165,13 @@ def restart_terminated_schedules(): print(row[0]) scheduler.add_job(reminder_timer_finished, 'date', run_date=end_date, id=str(row[0]), args=[row[0]]) + print("setting internal array information") machine_status[row[4] - 1][row[5] - 1] = Status.RUNNING.name machine_times[row[4] - 1][row[5] - 1] = row[2] machine_durations[row[4] - 1][row[5] - 1] = row[3] + print(machine_status, machine_times, machine_durations) + def reminder_timer_finished(timer_id): print("timer almost finished", timer_id) diff --git a/frontend/main.js b/frontend/main.js index 5029a8c..f22c2d7 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -160,6 +160,8 @@ async function updateMachines() { // --- current timers async function startLoadTimers() { + information(); + const timersData = await fetchTimers(); if (timersData[0] != 200) { diff --git a/frontend/timer/index.html b/frontend/timer/index.html index 6405843..f99b881 100644 --- a/frontend/timer/index.html +++ b/frontend/timer/index.html @@ -21,7 +21,7 @@
- H1 + H?
-- cgit v1.2.3