镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 06:26:47 +00:00
修复自动版本升级Bug
这个提交包含在:
@@ -117,7 +117,7 @@ def auto_update(raise_error=False):
|
|||||||
with open('./version', 'r', encoding='utf8') as f:
|
with open('./version', 'r', encoding='utf8') as f:
|
||||||
current_version = f.read()
|
current_version = f.read()
|
||||||
current_version = json.loads(current_version)['version']
|
current_version = json.loads(current_version)['version']
|
||||||
if (remote_version - current_version) >= 0.01:
|
if (remote_version - current_version) >= 0.01-1e-5:
|
||||||
from colorful import print亮黄
|
from colorful import print亮黄
|
||||||
print亮黄(
|
print亮黄(
|
||||||
f'\n新版本可用。新版本:{remote_version},当前版本:{current_version}。{new_feature}')
|
f'\n新版本可用。新版本:{remote_version},当前版本:{current_version}。{new_feature}')
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户