Added concept 'isa' other_concept functionality

This commit is contained in:
2019-12-21 22:02:07 +01:00
parent 2474b08150
commit a683d4cd42
13 changed files with 489 additions and 61 deletions
+5 -2
View File
@@ -407,12 +407,15 @@ class SheerkaDataProvider:
state.date = datetime.now()
if entry not in state.data:
state.data[entry] = {obj}
already_exist = False
else:
state.data[entry].add(obj)
already_exist = obj in state.data[entry]
if not already_exist:
state.data[entry].add(obj)
new_snapshot = self.save_state(state)
self.set_snapshot(new_snapshot)
return entry, None
return (None if already_exist else entry), None
def set(self, event_digest, entry, obj, use_ref=False):
"""