Fixed RPG
This commit is contained in:
@@ -380,6 +380,15 @@ async def update_session_rpg_settings(session_id: str, settings_json: str):
|
||||
await db.commit()
|
||||
|
||||
|
||||
async def update_session_outfit(session_id: str, outfit_json: str):
|
||||
async with aiosqlite.connect(DB_PATH) as db:
|
||||
await db.execute(
|
||||
"UPDATE sessions SET outfit_json = ?, updated_at = CURRENT_TIMESTAMP WHERE session_id = ?",
|
||||
(outfit_json, session_id),
|
||||
)
|
||||
await db.commit()
|
||||
|
||||
|
||||
async def upsert_quest(session_id: str, title: str, status: str = "active"):
|
||||
async with aiosqlite.connect(DB_PATH) as db:
|
||||
async with db.execute(
|
||||
|
||||
Reference in New Issue
Block a user