Better fix for get_item_street_addresses
This commit is contained in:
parent
ba22e8e9df
commit
468d1e49c7
|
@ -951,7 +951,7 @@ def get_item_street_addresses(item: model.Item) -> list[str]:
|
||||||
qualifiers = claim.get("qualifiers")
|
qualifiers = claim.get("qualifiers")
|
||||||
if not qualifiers or "P670" not in qualifiers:
|
if not qualifiers or "P670" not in qualifiers:
|
||||||
continue
|
continue
|
||||||
if "datavalue" not in qualifiers["P670"]:
|
if "datavalue" not in qualifiers["P670"][0]:
|
||||||
print(f"datavalue missing in P670 for {item.qid}")
|
print(f"datavalue missing in P670 for {item.qid}")
|
||||||
continue
|
continue
|
||||||
number = qualifiers["P670"][0]["datavalue"]["value"]
|
number = qualifiers["P670"][0]["datavalue"]["value"]
|
||||||
|
|
Loading…
Reference in a new issue