diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:39:19 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:39:19 +0700 |
| commit | 694a91d05fee865bd5ad92e36ff89cdc95df31b4 (patch) | |
| tree | a32172b9f49d685083db81622ce07f47e5a85874 | |
| parent | 53a34ed088f13aeb491e9737cb1545651f637055 (diff) | |
bye strp
| -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 3258e98..29d680a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -381,7 +381,7 @@ def finish_laundry(data: FinishRequestData, response: fastapi.Response, session_ cursor.execute(f"SELECT * FROM timers WHERE timer_id = '{data.id}'") row = cursor.fetchall()[0] - if datetime.datetime.now() < datetime.datetime.strptime(row[RowIndices.END_TIME]): + if datetime.datetime.now() < datetime.datetime.fromisoformat(row[RowIndices.END_TIME]): response.status_code = fastapi.status.HTTP_400_BAD_REQUEST return "timer has not finished yet" |
