From feb9cef463f89686a1ebe9690bd5c10dc328d195 Mon Sep 17 00:00:00 2001 From: Eduard Date: Tue, 24 Jun 2025 10:44:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=BE=D0=B3=D0=B8=D0=B9=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE=D0=BA=20=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B9=20activity=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5=20=D0=B2=20=D0=B1=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/db.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/db/db.py b/db/db.py index bd28b71..9daf068 100644 --- a/db/db.py +++ b/db/db.py @@ -43,11 +43,20 @@ class Database: is_updated = bool(tags) try: self.cursor.execute( - "INSERT INTO activity VALUES(?,?,?,?,?,?,?,?,?,?,?)", + """INSERT INTO activity( + description, + time_spent, + date_start, + date_end, + is_tracked, + vetro_project_id, + tag_id, + task_id, + project_id, + author_id + ) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""", ( - act.id, act.description, - act.author_id, act.time_spent, act.date_start, act.date_end, @@ -56,6 +65,7 @@ class Database: act.tag_id, act.task_id, act.project_id, + act.author_id, ) ) except sq.IntegrityError: