Implement suggestion
@@ -200,14 +200,15 @@ def copy_properties(oldapi_extractor, new_extractor, old_to_new_property_map={})
else:
prop_name = prop
+ if skip_if_value is not None:
+ if prop_value == skip_if_value:
+ continue
+
if prop_name not in properties:
properties[prop_name] = dict()
properties[prop_name]["ids"] = []
properties[prop_name]["values"] = []
- if skip_if_value is not None:
- if prop_value == skip_if_value:
- del properties[prop_name]
- continue
+
properties[prop_name]["ids"].append(id)
properties[prop_name]["values"].append(prop_value)
