diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:37:39 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 18:37:39 +0700 |
| commit | 53a34ed088f13aeb491e9737cb1545651f637055 (patch) | |
| tree | 1508ac41dd4f27e03c5ba3c73491bbcd9c15a1e0 | |
| parent | 696e1a3a79fb1c190b37ae7a2014017ec1171b73 (diff) | |
datetime datetime datetime
| -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 d9b7d79..3258e98 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.strptime(row[RowIndices.END_TIME]): + if datetime.datetime.now() < datetime.datetime.strptime(row[RowIndices.END_TIME]): response.status_code = fastapi.status.HTTP_400_BAD_REQUEST return "timer has not finished yet" |
