mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Optimize the installation of plugin dependencies (#700)
* Optimize the installation of plugin dependencies * Remove enumerate * Update main params
This commit is contained in:
@@ -56,10 +56,9 @@ class PluginService:
|
||||
if not file:
|
||||
raise errors.RequestError(msg='ZIP 压缩包不能为空')
|
||||
return await install_zip_plugin(file)
|
||||
elif type == PluginType.git:
|
||||
if not repo_url:
|
||||
raise errors.RequestError(msg='Git 仓库地址不能为空')
|
||||
return await install_git_plugin(repo_url)
|
||||
if not repo_url:
|
||||
raise errors.RequestError(msg='Git 仓库地址不能为空')
|
||||
return await install_git_plugin(repo_url)
|
||||
|
||||
@staticmethod
|
||||
async def uninstall(*, plugin: str):
|
||||
|
||||
Reference in New Issue
Block a user