industrial-model 0.1.20__py3-none-any.whl → 0.1.21__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.
@@ -109,8 +109,8 @@ def _create_query(
109
109
  final_cursors: dict[str, str | None] = {}
110
110
 
111
111
  for cursor_key, cursor_value in leaf_cursors.items():
112
- children = nodes_children[cursor_key]
113
- parent = nodes_parent[cursor_key]
112
+ children = nodes_children.get(cursor_key, set())
113
+ parent = nodes_parent.get(cursor_key, set())
114
114
 
115
115
  valid_keys = parent.union(children)
116
116
  valid_keys.add(cursor_key)
@@ -142,17 +142,16 @@ def _get_leaf_cursors(
142
142
  cursor_key == view_external_id
143
143
  or not cursor_value
144
144
  or len(query_result[cursor_key]) != MAX_LIMIT
145
- or cursor_key not in nodes_children
146
145
  ):
147
146
  continue
148
147
 
149
- children = nodes_children[cursor_key]
148
+ children = nodes_children.get(cursor_key, set())
150
149
 
151
150
  target_cursors_keys = target_cursors.keys()
152
151
  if len(children.intersection(target_cursors_keys)) > 0:
153
152
  continue
154
153
 
155
- parent = nodes_parent[cursor_key]
154
+ parent = nodes_parent.get(cursor_key, set())
156
155
  cursor_to_remove = parent.intersection(target_cursors_keys)
157
156
  for cursor_key_to_remove in cursor_to_remove:
158
157
  target_cursors.pop(cursor_key_to_remove)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: industrial-model
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Summary: Industrial Model ORM
5
5
  Author-email: Lucas Alves <lucasrosaalves@gmail.com>
6
6
  Classifier: Programming Language :: Python
@@ -12,7 +12,7 @@ industrial_model/cognite_adapters/query_mapper.py,sha256=3fEcaLsGjLKIh-g1BbMcffQ
12
12
  industrial_model/cognite_adapters/query_result_mapper.py,sha256=0IhW8YVQM_EBMQM_NXlzl27CuzSUWGX4g7K9VMUVgPw,9507
13
13
  industrial_model/cognite_adapters/sort_mapper.py,sha256=RJUAYlZGXoYzK0PwX63cibRF_L-MUq9g2ZsC2EeNIF4,696
14
14
  industrial_model/cognite_adapters/upsert_mapper.py,sha256=tWEiBJQeeNz1HDu0AoBIfCw_LL156Zg4h7ORKlZ__uw,4870
15
- industrial_model/cognite_adapters/utils.py,sha256=AyQxK8tDy-tAC6pji1ZzfAMsaVX2epiBhdwdCXRCPl4,4840
15
+ industrial_model/cognite_adapters/utils.py,sha256=I1c5DjLnxYgqw3RBPxTkPCIMeHAKZ-rRK4NplKDcesQ,4836
16
16
  industrial_model/cognite_adapters/view_mapper.py,sha256=qvT25gwIgPdAqZf-oQEh0GylUi5KEPwjLNmIl5ISQGA,1474
17
17
  industrial_model/engines/__init__.py,sha256=7aGHrUm2MxIq39vR8h0xu3i1zNOuT9H9U-q4lV3nErQ,102
18
18
  industrial_model/engines/async_engine.py,sha256=AkEHiHaO0wYiU8fwEG8H9EzNTlLpn9ygRPt-p4cQl7A,1675
@@ -26,6 +26,6 @@ industrial_model/queries/models.py,sha256=iiHQ7-cfg0nukEv5PoCx9QPF-w1gVSnoNbXBOK
26
26
  industrial_model/queries/params.py,sha256=ehgCoR5n6E-tkEuoymZ2lkLcSzMaBAx_HnyJ7sWpqz0,964
27
27
  industrial_model/statements/__init__.py,sha256=15LI9POLUdh6i3Zw0Aek0fVFfcTj8P8ZEa1Cli3pgXQ,3095
28
28
  industrial_model/statements/expressions.py,sha256=Sar1cIvy3sYi7tkWJN3ylHlZ252oN2mZJpZ1TX9jN3s,4940
29
- industrial_model-0.1.20.dist-info/METADATA,sha256=ZkydcSIJvDKweNn0nW8NeT9AeLjxHbO9iuR8Wn_Dyr4,6419
30
- industrial_model-0.1.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- industrial_model-0.1.20.dist-info/RECORD,,
29
+ industrial_model-0.1.21.dist-info/METADATA,sha256=AtFOfMY_QrLp0ymnWPdZbMILNsSuxe-IbD-olv0nGuI,6419
30
+ industrial_model-0.1.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
+ industrial_model-0.1.21.dist-info/RECORD,,