docs(README): 更新配置文件参数说明

This commit is contained in:
2025-03-23 16:50:09 +08:00
parent 3b4f23c670
commit 54e197e0fd
4 changed files with 30 additions and 11 deletions

View File

@@ -39,10 +39,7 @@ class Mapping:
a,
log,
)
await self.database.add(
id_,
alias,
)
await self.database.add(id_, alias)
async def has_mapping(self, id_: str) -> str:
return d[0] if (d := await self.database.select(id_)) else ""

View File

@@ -33,6 +33,7 @@ class IDRecorder:
async def add(
self,
id_: str,
name: str,
*args,
**kwargs,
) -> None:
@@ -151,11 +152,7 @@ class MapRecorder(IDRecorder):
)
return await self.cursor.fetchone()
async def add(
self,
id_: str,
name: str,
) -> None:
async def add(self, id_: str, name: str, *args, **kwargs) -> None:
if self.switch:
await self.database.execute(
"REPLACE INTO mapping_data VALUES (?, ?);",