all is well
This commit is contained in:
parent
eac1bd0d13
commit
2f149503bb
53 changed files with 1543 additions and 354 deletions
|
|
@ -45,9 +45,10 @@ def write_parquet(properties: list[dict], path: Path) -> None:
|
|||
remapped = 0
|
||||
for p in properties:
|
||||
sub_type = p.get("Property sub-type", "")
|
||||
if sub_type and sub_type != "Unknown":
|
||||
current_type = p.get("Property type")
|
||||
if sub_type and sub_type != "Unknown" and current_type in (None, "", "Other"):
|
||||
new_type = map_property_type(sub_type)
|
||||
if new_type != p.get("Property type"):
|
||||
if new_type != current_type:
|
||||
p["Property type"] = new_type
|
||||
remapped += 1
|
||||
if remapped:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue