diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:18:04 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:18:04 +0700 |
| commit | 3906d169ec7a171c18000a4ca2c129e96d9ffa96 (patch) | |
| tree | 0fff584ee8e3dd76130934929d2d9127ca582c59 /backend/main.py | |
| parent | 76ff4581d58d5865102264cc6246ee954a7eb668 (diff) | |
fix
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py index 351d427..f6910af 100644 --- a/backend/main.py +++ b/backend/main.py @@ -282,7 +282,7 @@ def get_laundry_info(response: fastapi.Response, session_key: Annotated[str | No @app.post("/finish", response_class=PlainTextResponse) def finish_laundry(data: FinishRequestData, response: fastapi.Response, session_key: Annotated[str | None, fastapi.Cookie()] = None): if session_key: - cursor.execute(f"SELECT * FROM timers WHERE id = '{data.id}'") + cursor.execute(f"SELECT * FROM timers WHERE timer_id = '{data.id}'") row = cursor.fetchall()[0] machine_status[row[4] - 1][row[5] - 1] = Status.EMPTY.name |
