1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
This commit is contained in:
Jörn-Michael Miehe 2021-09-13 23:53:16 +02:00
parent 8eaf891a08
commit 8b6f765778
2 changed files with 4 additions and 4 deletions

View file

@ -136,12 +136,12 @@ class Card:
def sqlite_save(self, cursor: sqlite3.Cursor) -> None:
cursor.execute("""
UPDATE INTO `cards_indices` (`code`, `index`)
INSERT OR IGNORE INTO `cards_indices` (`code`, `index`)
VALUES (?, ?)
""", (self.code.short, self.index))
cursor.executemany("""
UPDATE INTO `cards_content` (`code`, `language`, `name`, `text`, `face`)
INSERT OR IGNORE INTO `cards_content` (`code`, `language`, `name`, `text`, `face`)
VALUES(?, ?, ?, ?, ?)
""", (
(self.code.short, language.short, content.name, content.text, content.face)
@ -149,7 +149,7 @@ class Card:
))
cursor.executemany("""
UPDATE INTO `cards_elements` (`code`, `element`)
INSERT OR IGNORE INTO `cards_elements` (`code`, `element`)
VALUES (?, ?)
""", (
(self.code.short, element)

View file

@ -137,7 +137,7 @@ class RWCardDB(CardDB):
card.sqlite_save(cursor)
cursor.executemany("""
UPDATE INTO `faces_urls` (`face`, `url`)
INSERT OR IGNORE INTO `faces_urls` (`face`, `url`)
VALUES(?, ?)
""", self._face_to_url.items())