feat: Update Craft database insert query to set initial used_count to 0

This commit is contained in:
tmddn3070 2024-07-15 09:10:41 +00:00
parent 1bcb5672ad
commit b464183ca3

View File

@ -13,7 +13,7 @@ class SqliteDatabase:
@staticmethod @staticmethod
async def sets(key1: str, key2: str, value_emoji: str, value_word: str) -> None: async def sets(key1: str, key2: str, value_emoji: str, value_word: str) -> None:
async with Sqlite() as sqlite: async with Sqlite() as sqlite:
await sqlite.execute("INSERT INTO Craft (key1, key2, value_emoji, value_word, used_count) VALUES (?, ?, ?, ?, ?)", (key1, key2, value_emoji, value_word, 1)) await sqlite.execute("INSERT INTO Craft (key1, key2, value_emoji, value_word, used_count) VALUES (?, ?, ?, ?, ?)", (key1, key2, value_emoji, value_word, 0))
@staticmethod @staticmethod
async def update(key1: str, key2: str) -> None: async def update(key1: str, key2: str) -> None: