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 720a422..26f6579 100644 --- a/backend/main.py +++ b/backend/main.py @@ -276,7 +276,7 @@ def start_new_timer(data: RequestData, response: fastapi.Response, session_key: end_date = now + datetime.timedelta(minutes=(data.duration * 30)) cursor.execute(f""" INSERT INTO timers (user_id, start_time, end_time, block, machine, status) - VALUES ('{session_key}', '{now.isoformat()}', {end_date}, {block}, {machine}, 'RUNNING') + VALUES ('{session_key}', '{now.isoformat()}', '{end_date.isoformat()}', {block}, {machine}, 'RUNNING') """) conn.commit() cursor.execute("SELECT * FROM timers;") |
