File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 26
26
ADDITIONAL_INFORMATION_CONFIG_PATH = Path (os .path .join (resources_path (), "libraries" , "additional_information.yaml" ))
27
27
28
28
29
- class AttributeValueDataType (enum .StrEnum ):
29
+ class AttributeValueDataType (str , enum .Enum ):
30
30
LOCALIZED_TEXT = "LocalizedText"
31
31
TEXT = "Text"
32
32
NUMERIC = "Numeric"
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ def attribute_value_model_from_feature(feature: QgsFeature) -> AttributeValue:
330
330
def update_feature_from_attribute_value_model (value : AttributeValue | None , feature : QgsFeature ):
331
331
if value is None :
332
332
return
333
- feature ["value_data_type" ] = str ( value .value_data_type ) if value .value_data_type is not None else None
333
+ feature ["value_data_type" ] = value .value_data_type . value if value .value_data_type is not None else None
334
334
feature ["numeric_value" ] = value .numeric_value
335
335
feature ["numeric_range_min" ] = value .numeric_range_min
336
336
feature ["numeric_range_max" ] = value .numeric_range_max
You can’t perform that action at this time.
0 commit comments