correct type conversion in csv import

This commit is contained in:
Stefan Strobel 2024-11-18 23:08:34 +01:00
parent b9d788935d
commit f2ea45cd19

View File

@ -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)