Compare commits
2 Commits
bcfadfdfb9
...
8a658a4cf3
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a658a4cf3 | |||
| feb9cef463 |
16
db/db.py
16
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:
|
||||
|
||||
Reference in New Issue
Block a user