mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
typo
This commit is contained in:
parent
8eaf891a08
commit
8b6f765778
2 changed files with 4 additions and 4 deletions
|
@ -136,12 +136,12 @@ class Card:
|
||||||
|
|
||||||
def sqlite_save(self, cursor: sqlite3.Cursor) -> None:
|
def sqlite_save(self, cursor: sqlite3.Cursor) -> None:
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
UPDATE INTO `cards_indices` (`code`, `index`)
|
INSERT OR IGNORE INTO `cards_indices` (`code`, `index`)
|
||||||
VALUES (?, ?)
|
VALUES (?, ?)
|
||||||
""", (self.code.short, self.index))
|
""", (self.code.short, self.index))
|
||||||
|
|
||||||
cursor.executemany("""
|
cursor.executemany("""
|
||||||
UPDATE INTO `cards_content` (`code`, `language`, `name`, `text`, `face`)
|
INSERT OR IGNORE INTO `cards_content` (`code`, `language`, `name`, `text`, `face`)
|
||||||
VALUES(?, ?, ?, ?, ?)
|
VALUES(?, ?, ?, ?, ?)
|
||||||
""", (
|
""", (
|
||||||
(self.code.short, language.short, content.name, content.text, content.face)
|
(self.code.short, language.short, content.name, content.text, content.face)
|
||||||
|
@ -149,7 +149,7 @@ class Card:
|
||||||
))
|
))
|
||||||
|
|
||||||
cursor.executemany("""
|
cursor.executemany("""
|
||||||
UPDATE INTO `cards_elements` (`code`, `element`)
|
INSERT OR IGNORE INTO `cards_elements` (`code`, `element`)
|
||||||
VALUES (?, ?)
|
VALUES (?, ?)
|
||||||
""", (
|
""", (
|
||||||
(self.code.short, element)
|
(self.code.short, element)
|
||||||
|
|
|
@ -137,7 +137,7 @@ class RWCardDB(CardDB):
|
||||||
card.sqlite_save(cursor)
|
card.sqlite_save(cursor)
|
||||||
|
|
||||||
cursor.executemany("""
|
cursor.executemany("""
|
||||||
UPDATE INTO `faces_urls` (`face`, `url`)
|
INSERT OR IGNORE INTO `faces_urls` (`face`, `url`)
|
||||||
VALUES(?, ?)
|
VALUES(?, ?)
|
||||||
""", self._face_to_url.items())
|
""", self._face_to_url.items())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue