Skip to content
Snippets Groups Projects
Commit 291966bd authored by antondmtvch's avatar antondmtvch
Browse files

added check of view collections

parent 8e7c7411
No related branches found
No related tags found
1 merge request!47added check of view collections
......@@ -6,6 +6,7 @@ import typing
from deepdiff import DeepDiff
from google.protobuf.json_format import MessageToDict
from perxis.collections import collections_pb2_grpc, collections_pb2
from perxis.roles import roles_pb2_grpc, roles_pb2
from perxis.common import common_pb2
......@@ -339,6 +340,10 @@ class ExtensionSetup:
continue
# если view-коллекция то не устанавливаем схему
if MessageToDict(collection).get("view"):
continue
diff = DeepDiff(
json.loads(collection.schema or "{}"),
json.loads(local_collection.schema or "{}"),
......
......@@ -14,7 +14,7 @@ def load_requirements():
setup(
name='perxis',
version='1.0.0',
version='1.0.1',
description='Perxis python client',
long_description=long_description,
long_description_content_type='text/markdown',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment