Added basic implentation for where

This commit is contained in:
2020-02-05 18:47:20 +01:00
parent a5a721094b
commit afc1e22949
35 changed files with 864 additions and 320 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ class SheerkaPickler:
elif utils.is_enum(k):
k_str = core.utils.get_full_qualified_name(k) + "." + k.name
elif isinstance(k, Concept):
k_str = f":c:{k.key}:{k.id}:"
k_str = core.utils.str_concept(k)
else:
k_str = k
+1 -1
View File
@@ -90,7 +90,7 @@ class SheerkaUnpickler:
if key == "null":
return None
concept_key, concept_id = core.utils.decode_concept(key)
concept_key, concept_id = core.utils.unstr_concept(key)
if concept_key is not None:
return self.sheerka.new((concept_key, concept_id)) if concept_id else self.sheerka.new(concept_key)