Skip to content

Commit 8640b87

Browse files
committed
chore: reformat code
1 parent 383be95 commit 8640b87

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

astrbot/dashboard/routes/plugin.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,9 @@ async def get_plugins(self):
12691269
if plugin.logo_path:
12701270
logo_url = await self.get_plugin_logo_token(plugin.logo_path)
12711271
_t = {
1272-
"name": plugin.name.replace("_", "-"), # 统一转换为减号格式,与市场数据保持一致
1272+
"name": plugin.name.replace(
1273+
"_", "-"
1274+
), # 统一转换为减号格式,与市场数据保持一致
12731275
"repo": "" if plugin.repo is None else plugin.repo,
12741276
"author": plugin.author,
12751277
"desc": plugin.desc,
@@ -1319,7 +1321,9 @@ async def get_plugin_detail(self):
13191321
Response()
13201322
.ok(
13211323
{
1322-
"name": plugin.name.replace("_", "-"), # 统一转换为减号格式,与市场数据保持一致
1324+
"name": plugin.name.replace(
1325+
"_", "-"
1326+
), # 统一转换为减号格式,与市场数据保持一致
13231327
"repo": "" if plugin.repo is None else plugin.repo,
13241328
"author": plugin.author,
13251329
"desc": plugin.desc,
@@ -1371,7 +1375,9 @@ async def get_plugin_page_components(self, plugin) -> list[dict]:
13711375
"page_name": page["name"],
13721376
"i18n_key": page["i18n_key"],
13731377
"description": "Plugin Page entry",
1374-
"plugin_name": plugin.name.replace("_", "-"), # 统一转换为减号格式,与市场数据保持一致
1378+
"plugin_name": plugin.name.replace(
1379+
"_", "-"
1380+
), # 统一转换为减号格式,与市场数据保持一致
13751381
}
13761382
for page in pages
13771383
]

0 commit comments

Comments
 (0)