From 9d5ed627a284d7c8fa32d8d6fd975cf5cd56b6c9 Mon Sep 17 00:00:00 2001 From: Junhan Chang Date: Sun, 19 Oct 2025 05:21:41 +0800 Subject: [PATCH] fix bioyond converter --- unilabos/resources/graphio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unilabos/resources/graphio.py b/unilabos/resources/graphio.py index d91a933d..ada7e8d2 100644 --- a/unilabos/resources/graphio.py +++ b/unilabos/resources/graphio.py @@ -653,11 +653,10 @@ def resource_bioyond_to_plr(bioyond_materials: list[dict], type_mapping: Dict[st bottle = plr_material[number] = initialize_resource( {"name": f'{detail["name"]}_{number}', "class": type_mapping[typeName][0]}, resource_type=ResourcePLR ) - else: bottle.tracker.liquids = [ (detail["name"], float(detail.get("quantity", 0)) if detail.get("quantity") else 0) ] - bottle.code = detail.get("code", "") + bottle.code = detail.get("code", "") else: bottle = plr_material[0] if plr_material.capacity > 0 else plr_material bottle.tracker.liquids = [