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