Merge pull request 'correct type conversion in csv import' (#19) from bugfix/import-fuckups into develop

Reviewed-on: #19
This commit is contained in:
Mario Hüttel 2024-11-19 20:42:59 +01:00
commit 841be4f1bb

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)