Added concepts with the same key handling

This commit is contained in:
2019-11-18 17:02:02 +01:00
parent 7fa509555d
commit cb6be9fec7
15 changed files with 255 additions and 43 deletions
+5 -1
View File
@@ -576,7 +576,11 @@ class SheerkaDataProvider:
if key is not None and key not in state.data[entry]:
return None
return self.load_ref_if_needed(state.data[entry] if key is None else state.data[entry][key])[0]
item = state.data[entry] if key is None else state.data[entry][key]
if isinstance(item, list):
return [self.load_ref_if_needed(i)[0] for i in item]
return self.load_ref_if_needed(item)[0]
def exists(self, entry, key=None, digest=None):
"""