diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:19:24 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-30 19:19:24 +0700 |
| commit | 9ce09c77d8be414969911d3b5a3387516637a6c1 (patch) | |
| tree | 093c54286a197ed56dcbb427a9fee03834bcb584 /backend/main.py | |
| parent | 3906d169ec7a171c18000a4ca2c129e96d9ffa96 (diff) | |
some extra debug
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/main.py b/backend/main.py index f6910af..719c835 100644 --- a/backend/main.py +++ b/backend/main.py @@ -292,6 +292,8 @@ def finish_laundry(data: FinishRequestData, response: fastapi.Response, session_ cursor.execute(f"DELETE FROM timers WHERE timer_id = {row[0]}") conn.commit() + print(f"timer of id {data.id} has been finished by {session_key}") + return "laundry finished" if session_key != row[1]: |
