更新V2.9

1、优化开启报表时,所输入的股道编号大于配置文件中的股道数的对应报错内容
2、更改读取掐煤量的依据标签
This commit is contained in:
Mr.V 2024-03-04 15:50:09 +08:00
parent db7eab598b
commit 706abf1cfa
1 changed files with 2 additions and 0 deletions

View File

@ -532,6 +532,8 @@ def report_close(pound_no: str, total_number_carriage: int):
return 412, "total_number_carriage should be a int and > 0", {}
pound_no = int(pound_no)
if pound_no > config.track_num:
return 412, '开启报表的股道号超过当前设置的股道数量,请检查配置', {}
total_number_carriage = int(total_number_carriage)
tagsList = TagsList()