From f2ea45cd195dad7718b49da07b8932d96e371f6d Mon Sep 17 00:00:00 2001 From: stefan Date: Mon, 18 Nov 2024 23:08:34 +0100 Subject: [PATCH] correct type conversion in csv import --- shimatta_kenkyusho/parts/component_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shimatta_kenkyusho/parts/component_import.py b/shimatta_kenkyusho/parts/component_import.py index 902b1d9..39b262f 100644 --- a/shimatta_kenkyusho/parts/component_import.py +++ b/shimatta_kenkyusho/parts/component_import.py @@ -28,7 +28,7 @@ def _set_additional_parameters(component, type, value): param = ComponentParameter.objects.create(component=component, parameter_type=param_type) - if param_type == 'F': + if param_type.parameter_type == 'F': param.text_value = value else: param.value = float(value) -- 2.47.0