Skip to content

Commit bf01456

Browse files
committed
type -> datavalue/type
1 parent 88ef0d5 commit bf01456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wikidataintegrator/sdc_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ def __call__(self, *args):
18921892
return self.get_class_representation(jsn=self.json_representation)
18931893

18941894
def get_class_representation(self, jsn):
1895-
data_type = [x for x in WDBaseDataType.__subclasses__() if x.DTYPE == jsn['type']][0]
1895+
data_type = [x for x in WDBaseDataType.__subclasses__() if x.DTYPE == jsn["datavalue"]['type']][0]
18961896
self.final = True
18971897
self.current_type = data_type
18981898
return data_type.from_json(jsn)

0 commit comments

Comments
 (0)