diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-02 17:40:44 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-02 17:40:44 +0700 |
| commit | 153469b0d9ed3ab146316c3d784533db8c2ae2fd (patch) | |
| tree | 0041a8a4e8ed4c9cce949df6221f7c6cc45c8f47 /backend | |
| parent | c947b71b55fb4a2c6c51c2dcdea25982375c5176 (diff) | |
sql fix. frontend broken btw
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;") |
