diff options
| -rw-r--r-- | backend/main.py | 3 | ||||
| -rw-r--r-- | frontend/main.js | 2 | ||||
| -rw-r--r-- | frontend/timer/index.html | 2 |
3 files changed, 6 insertions, 1 deletions
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 @@ <body> <div class="section-container row bg-1" style="height: 164px;"> <span id="logo">Victoria Hall<br>LaundryWeb</span> - <span id="logo-id">H1</span> + <span id="logo-id">H?</span> </div> <div class="section-container row bg-2" style="padding: 8px; gap: 8px;"> <button class="button button-tab bg-3" disabled>Timer</button> |
