MCPcopy
hub / github.com/AstrBotDevs/AstrBot / operation

Function operation

astrbot/dashboard/api/plugins.py:365–373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363 log_label: str,
364):
365 async def operation():
366 form, files = await multipart_parts(request)
367 upload_file = files.get("file")
368 if upload_file is None:
369 raise PluginServiceError("缺少插件文件")
370 return await service.install_plugin_upload_from_dashboard_form(
371 upload_file=upload_file,
372 ignore_version_check=form.get("ignore_version_check", "false"),
373 )
374
375 return await _run_service(operation, log_label=log_label)
376

Callers 5

run_maybe_asyncFunction · 0.85
with_neo_clientMethod · 0.85
_run_jsonFunction · 0.85
_run_dashboard_jsonFunction · 0.85
_run_jsonFunction · 0.85

Calls 4

PluginServiceErrorClass · 0.90
multipart_partsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected