2023/2/1 update fug fixed 2.0

This commit is contained in:
bgArray 2023-02-01 10:55:07 +08:00
parent f568803b0d
commit 215bcafb64
2 changed files with 34 additions and 32 deletions

View File

@ -50,6 +50,7 @@
- 感谢 **Mono**\<QQ738893087\> 反馈安装时的问题辅助我们找到了视窗操作系统下的兼容性问题 - 感谢 **Mono**\<QQ738893087\> 反馈安装时的问题辅助我们找到了视窗操作系统下的兼容性问题
- 感谢 **Ammelia 艾米利亚**\<QQ2838334637\> 敦促我们进行新的功能开发并为新功能提出了非常优秀的大量建议以及提供的BDX导入测试支持为我们的新结构生成算法提供了大量的实际理论支持 - 感谢 **Ammelia 艾米利亚**\<QQ2838334637\> 敦促我们进行新的功能开发并为新功能提出了非常优秀的大量建议以及提供的BDX导入测试支持为我们的新结构生成算法提供了大量的实际理论支持
- 感谢 **[神羽](https://gitee.com/snowykami) [SnowyKami](https://github.com/snowyfirefly)** 对我们项目的支持与宣传 - 感谢 **[神羽](https://gitee.com/snowykami) [SnowyKami](https://github.com/snowyfirefly)** 对我们项目的支持与宣传
- 感谢 **playjuice123 指令师_苦力怕**\<QQ240667197\>为我们的程序找出错误并提醒我们修复一个一直存在的大bug
> 感谢广大群友为此程序提供的测试等支持 > 感谢广大群友为此程序提供的测试等支持
> >

View File

@ -206,17 +206,18 @@ out_path = format_ipt(
f"{_('FileNotFound')}{_(',')}{_('Re-Enter')}{_('.')}", f"{_('FileNotFound')}{_(',')}{_('Re-Enter')}{_('.')}",
)[0].lower() )[0].lower()
conversion = msctPkgver.midiConvert() conversion = msctPkgver.midiConvert()
def isMethodOK(sth: str): def isMethodOK(sth: str):
if int(sth) in range(1,len(conversion.methods)+1): if int(sth) in range(1, len(conversion.methods) + 1):
return int(sth) return int(sth)
else: else:
raise ValueError raise ValueError
convert_method = format_ipt(f"{_('EnterMethod')}{_(':')}",isMethodOK,f"{_('MethodRangeErr').format(1,len(conversion.methods))}")[1]
convert_method = \
format_ipt(f"{_('EnterMethod')}{_(':')}", isMethodOK, f"{_('MethodRangeErr').format(1, len(conversion.methods))}")[1]
# 选择输出格式 # 选择输出格式
while True: while True: