summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py2
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