mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
docs(README): 更新配置文件参数说明
This commit is contained in:
@@ -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 ""
|
||||
|
||||
@@ -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 (?, ?);",
|
||||
|
||||
Reference in New Issue
Block a user