Починил ошибку сохранения в бд без id
This commit is contained in:
2
db/db.py
2
db/db.py
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user