Починил ошибку сохранения в бд без id

This commit is contained in:
2025-07-02 09:57:06 +03:00
parent feb9cef463
commit 9840d3aadf

View File

@@ -44,6 +44,7 @@ class Database:
try: try:
self.cursor.execute( self.cursor.execute(
"""INSERT INTO activity( """INSERT INTO activity(
id,
description, description,
time_spent, time_spent,
date_start, date_start,
@@ -56,6 +57,7 @@ class Database:
author_id author_id
) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""", ) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
( (
act.id,
act.description, act.description,
act.time_spent, act.time_spent,
act.date_start, act.date_start,