修复检验茧票不保存僵蚕数量的问题;修改实验室仪评指标联检测为版本V2

This commit is contained in:
BBIT-Kai
2025-10-11 11:07:04 +08:00
parent 2a6f930f03
commit c1f4386747
5 changed files with 26 additions and 5 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ def process_ticket_image(
resolution=resolution,
size=size_kb,
name=project_name if project_name else object_name[:8],
dead_pupa_count=json_data.get("moisture_content") if version == 2 else 0,
moisture_content=json_data.get("moisture_content"),
dead_pupa_count=json_data.get("dead_pupa_count") if version == 2 else 0,
moisture_content=json_data.get("moisture_content") if version == 2 else 0,
cocoon_weight=json_data.get("cocoon_weight"),
defective_pupa_count=json_data.get("defective_pupa_count"),
fresh_shell_weight=json_data.get("fresh_shell_weight"),