修改打印多余字

This commit is contained in:
fasiondog 2024-08-16 09:18:44 +08:00
parent 3e1b0430a5
commit 468c97e960

View File

@ -74,11 +74,11 @@ void GlobalInitializer::init() {
}
void GlobalInitializer::clean() {
if (CanUpgrade()) {
if (runningInPython() && CanUpgrade()) {
fmt::print(
"\n====================================================================\n"
"The new version of Hikyuu is {}, and you can run the upgrade command:\n"
"Hikyuu 的最新版本是 {}, 您可以运行升级命令:\n"
"Hikyuu 的最新版本是 {}, 您可以运行升级命令:\n"
"pip install hikyuu --upgrade\n"
"========================================================\n\n",
getLatestVersion(), getLatestVersion());