Added basic implentation for where
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user