Skip to content

Commit

Permalink
tries fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Mar 18, 2024
1 parent dec35c3 commit 3a67241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ez_wikidata/__init__.py
@@ -1 +1 @@
__version__ = "0.2.2"
__version__ = "0.2.1"
4 changes: 2 additions & 2 deletions ez_wikidata/wdproperty.py
Expand Up @@ -439,8 +439,8 @@ def from_record(cls, wpm:WikidataPropertyManager, record: dict) -> "PropertyMapp
property_type = WdDatatype[property_type]
else:
pid=record.get("propertyId")
props=wpm.get_properties_by_ids([pid], "en")
if len(props==1):
props=wpm.get_properties_by_ids([pid])
if len(props)==1:
prop=props[0]
property_type=prop.ptype
mapping = PropertyMapping(
Expand Down

0 comments on commit 3a67241

Please sign in to comment.