feat: Update Craft database insert query to set initial used_count to 0
This commit is contained in:
parent
1bcb5672ad
commit
b464183ca3
@ -13,7 +13,7 @@ class SqliteDatabase:
|
||||
@staticmethod
|
||||
async def sets(key1: str, key2: str, value_emoji: str, value_word: str) -> None:
|
||||
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
|
||||
async def update(key1: str, key2: str) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user