move to async database

This commit is contained in:
Hay1tsme committed 2024-01-09 14:42:17 -05:00
1 parent edd3ce8ead
commit 05586df08a
77 files changed
+1925 -1948

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ session_log = Table(
class OngekiLogData(BaseData):
def put_gp_log(
async def put_gp_log(
self,
aime_id: Optional[int],
used_credit: int,
@@ -61,7 +61,7 @@ class OngekiLogData(BaseData):
currentGP=current_gp,
)
result = self.execute(sql)
result = await self.execute(sql)
if result is None:
self.logger.warning(
f"put_gp_log: Failed to insert GP log! aime_id: {aime_id} kind {kind} pattern {pattern} current_gp {current_gp}"