Skip to content

Commit e942e02

Browse files
committed
fix: 修复模型配置命令不输入模型编号无法进入下一步的问题
1 parent 0de9e09 commit e942e02

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ docs/_templates/
1212
test_env.sh
1313
.vscode/
1414
.eggs/
15-
.pytest_cache/
15+
.pytest_cache/
16+
.python-version

bgesdk/management/commands/model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,10 @@ def _config_model(self, config=None):
383383
prompt = '?请输入解读模型编号 [{}]:'.format(default_model_id)
384384
while True:
385385
model_id = input(prompt)
386-
if not model_id_match(model_id):
386+
if not model_id and default_model_id:
387+
model_id = default_model_id
388+
break
389+
if model_id and not model_id_match(model_id):
387390
output('模型编号只能包含数字、大小写字母')
388391
continue
389392
if model_id:

bgesdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#-*- coding: utf-8 -*-
22

3-
__version__ = '0.2.6'
3+
__version__ = '0.2.7'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = bge-python-sdk
3-
version = 0.2.6
3+
version = 0.2.7
44
description = 可用于调用 BGE 开放平台的相关接口。
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)