diff options
Diffstat (limited to 'backend')
| -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" |
