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: