industrial-model 0.1.26__py3-none-any.whl → 0.1.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,6 +90,8 @@ class QueryResultMapper:
90
90
 
91
91
  visited.add(identify)
92
92
  properties = node.properties.get(view_id, {})
93
+ if len(properties) == 0:
94
+ continue
93
95
 
94
96
  edges_mapping: dict[str, list[EdgeContainer]] = {}
95
97
  node_id = get_node_id(node)
@@ -118,6 +120,8 @@ class QueryResultMapper:
118
120
 
119
121
  node_entries = mapping_nodes.get(element_key)
120
122
  if not node_entries:
123
+ if mapping_key in properties:
124
+ properties.pop(mapping_key)
121
125
  continue
122
126
 
123
127
  entry_data = self.nodes_to_dict(node_entries)
@@ -186,7 +190,7 @@ class QueryResultMapper:
186
190
  is_list = True
187
191
  connection_type = ConnectionTypeEnum.EDGE
188
192
 
189
- if nodes:
193
+ if nodes is not None:
190
194
  mappings[property_name] = _PropertyMapping(
191
195
  is_list=is_list,
192
196
  connection_type=connection_type,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: industrial-model
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: Industrial Model ORM
5
5
  Author-email: Lucas Alves <lucasrosaalves@gmail.com>
6
6
  Classifier: Programming Language :: Python
@@ -9,7 +9,7 @@ industrial_model/cognite_adapters/filter_mapper.py,sha256=R_OX8JOM33vzBVFvfo0iDm
9
9
  industrial_model/cognite_adapters/models.py,sha256=2j2IS01uPkQEp9WdVk8seYzEqGcDdWFnpzXhusHB2zk,945
10
10
  industrial_model/cognite_adapters/optimizer.py,sha256=EQfCe-4mSeXhYa2kcqJerPXYsCRgMJPA1AIf1o1KNH0,2415
11
11
  industrial_model/cognite_adapters/query_mapper.py,sha256=QdFVkfmL4tWcCy_oypOluT0Fo68obPk2RjBPvVA9mUs,5950
12
- industrial_model/cognite_adapters/query_result_mapper.py,sha256=dzj5CdteITq-E3uQjX9s_B3WmryQV69pnwrGGHdcWDE,9139
12
+ industrial_model/cognite_adapters/query_result_mapper.py,sha256=iCcTb0AUg5rtw8nhK7D4d_x6Z53zgNMpvWrVRM0R2pY,9315
13
13
  industrial_model/cognite_adapters/search_mapper.py,sha256=dh69Te8oiDIRPbEMTcof-ZJ4XD-xB5iiBHUR0UETzho,1504
14
14
  industrial_model/cognite_adapters/sort_mapper.py,sha256=RJUAYlZGXoYzK0PwX63cibRF_L-MUq9g2ZsC2EeNIF4,696
15
15
  industrial_model/cognite_adapters/upsert_mapper.py,sha256=2QN4LXdUTWDmnLmXGKOLnCdTnUm5Zz2sZXD80-kAeQM,4720
@@ -27,6 +27,6 @@ industrial_model/queries/models.py,sha256=XS-50Ja11fVM5G7XTvrFf4OSUD3QO58rAKkkFB
27
27
  industrial_model/queries/params.py,sha256=U2LCdmDs_jrROvJIsWdopAmZAhXrK2gDr4kuDlVK7Ug,1384
28
28
  industrial_model/statements/__init__.py,sha256=rjLRo2KoazHQaOpmPkxbI3_Nm8NCkJxjpuqow6IZVSc,4221
29
29
  industrial_model/statements/expressions.py,sha256=4ZZOcZroI5-4xRw4PXIRlufi0ARndE5zSbbxLDpR2Ec,4816
30
- industrial_model-0.1.26.dist-info/METADATA,sha256=ucUIAoAcw63yUQmLmrxaVijuuUp1rrQ4ctBo2RwR4Pc,6858
31
- industrial_model-0.1.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
- industrial_model-0.1.26.dist-info/RECORD,,
30
+ industrial_model-0.1.27.dist-info/METADATA,sha256=6Y23wxqT9bOGAos8ivWJTLH3Renj_fxrB1ZxZiR_JCQ,6858
31
+ industrial_model-0.1.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ industrial_model-0.1.27.dist-info/RECORD,,