summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/main.py b/backend/main.py
index 26f6579..06906e6 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -275,8 +275,8 @@ def start_new_timer(data: RequestData, response: fastapi.Response, session_key:
print("session key valid", 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.isoformat()}', {block}, {machine}, 'RUNNING')
+ INSERT INTO timers (user_id, start_time, end_time, block, machine, status, subscription_id)
+ VALUES ('{session_key}', '{now.isoformat()}', '{end_date.isoformat()}', {block}, {machine}, 'RUNNING', 'TODO')
""")
conn.commit()
cursor.execute("SELECT * FROM timers;")