WolfgangFahl / PyGenericSpreadSheet

Generic Spreadsheet Editing API
Apache License 2.0
0 stars 0 forks source link

Wikidata property and qualifier overwrite themselves #10

Closed tholzheim closed 5 months ago

tholzheim commented 2 years ago

propByName is based on the aggregated result of mapDict. Thus, properties with different name but same proeprtyId (qualifier with same id but different name) overwrite them selves so that only one property stays in mapDict and either the property or the qualifiers are removed.

https://github.com/WolfgangFahl/PyGenericSpreadSheet/blob/fcbe0b97a71655e88710f602a5cb60ae6784ba8f/spreadsheet/wikidata.py#L157

mapDict(dict): the mapping dictionary to use

expected parameter needs to be adjusted to allow qualifiers and properties with the same PropertyId

WolfgangFahl commented 5 months ago

if this is still a problem readd to https://pypi.org/project/py-ez-wikidata/