добавил проверку на обновление бд

This commit is contained in:
2025-05-21 13:11:06 +03:00
parent 9e5aab5b4d
commit 25d32d83a9

View File

@@ -80,13 +80,7 @@ class Database:
cur = self.con.cursor()
for tag in tags:
try:
cur.execute(
"INSERT INTO tags VALUES(?, ?)",
(
tag.id,
tag.title
)
)
cur.execute("INSERT INTO tags VALUES(?, ?)",(tag.id,tag.title))
self.con.commit()
except Exception as e:
logger.debug(e)