Skip to content

Commit

Permalink
readds item special WdDatatype
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Mar 6, 2024
1 parent 65bb590 commit 26a53b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ez_wikidata/wdproperty.py
Expand Up @@ -35,6 +35,7 @@ class WdDatatype(Enum):
tabular_data = auto() # TabularData: 6 occurrences
geoshape = auto() # GeoShape: 3 occurrences
# Special cases:
item = auto() # Item: Special case
year = auto() # Year: Special case
date = auto() # Date: Special case

Expand Down Expand Up @@ -495,7 +496,7 @@ def is_item_itself(self) -> bool:
Returns:
bool: True if the property mapping links to the existing item
"""
is_item_id= self.property_type_enum == WdDatatype.itemid
is_item_id= self.property_type_enum == WdDatatype.item
return is_item_id

@classmethod
Expand Down

0 comments on commit 26a53b7

Please sign in to comment.