We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88ef0d5 commit bf01456Copy full SHA for bf01456
1 file changed
wikidataintegrator/sdc_core.py
@@ -1892,7 +1892,7 @@ def __call__(self, *args):
1892
return self.get_class_representation(jsn=self.json_representation)
1893
1894
def get_class_representation(self, jsn):
1895
- data_type = [x for x in WDBaseDataType.__subclasses__() if x.DTYPE == jsn['type']][0]
+ data_type = [x for x in WDBaseDataType.__subclasses__() if x.DTYPE == jsn["datavalue"]['type']][0]
1896
self.final = True
1897
self.current_type = data_type
1898
return data_type.from_json(jsn)
0 commit comments