diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-30 00:02:48 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-30 00:02:48 +0700 |
| commit | 1d3d0c7fa5990646a71608d342d3a9652481be57 (patch) | |
| tree | 9613f1b3265d55de2baa7d954654df204a39d6af /backend/main.py | |
| parent | bcbb093cafa0445be9d53513cc4702308139faca (diff) | |
oops forgot about the status arrays upon restart
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/main.py b/backend/main.py index aed7ce6..c7b3fe4 100644 --- a/backend/main.py +++ b/backend/main.py @@ -98,6 +98,10 @@ 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]]) + 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] * 30 + def reminder_timer_finished(timer_id): print("timer almost finished", timer_id) |
