fix: 非源码拉取安装的plugin源码地址输出错误

This commit is contained in:
Rock Chin
2023-01-17 14:11:58 +08:00
parent 645099ecf2
commit 2319c7eae2

View File

@@ -98,7 +98,9 @@ def plugin_operation(cmd, params, is_admin):
plugin['version'], plugin['author'])
if updater.is_repo("/".join(plugin['path'].split('/')[:-1])):
reply_str += "源码: "+updater.get_remote_url("/".join(plugin['path'].split('/')[:-1]))+"\n"
remote_url = updater.get_remote_url("/".join(plugin['path'].split('/')[:-1]))
if remote_url != "https://github.com/RockChinQ/QChatGPT" and remote_url != "https://gitee.com/RockChin/QChatGPT":
reply_str += "源码: "+remote_url+"\n"
reply_str += "\n"