nsarchive 1.1.6__py3-none-any.whl → 1.1.7__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.
- nsarchive/__init__.py +1 -4
- {nsarchive-1.1.6.dist-info → nsarchive-1.1.7.dist-info}/METADATA +1 -1
- {nsarchive-1.1.6.dist-info → nsarchive-1.1.7.dist-info}/RECORD +5 -5
- {nsarchive-1.1.6.dist-info → nsarchive-1.1.7.dist-info}/LICENSE +0 -0
- {nsarchive-1.1.6.dist-info → nsarchive-1.1.7.dist-info}/WHEEL +0 -0
nsarchive/__init__.py
CHANGED
@@ -164,9 +164,6 @@ class EntityInstance:
|
|
164
164
|
for target, value in listquery.items():
|
165
165
|
if value not in item[target]:
|
166
166
|
_res.remove(item)
|
167
|
-
|
168
|
-
if item is None:
|
169
|
-
_res.remove(item)
|
170
167
|
|
171
168
|
return [ self.get_entity(NSID(entity['key'])) for entity in _res ]
|
172
169
|
|
@@ -186,7 +183,7 @@ class EntityInstance:
|
|
186
183
|
groups = self.fetch_entities({'_type': 'organization'}, {'members': id})
|
187
184
|
groups.extend(self.fetch_entities({'_type': 'organization', 'owner_id': id}))
|
188
185
|
|
189
|
-
return groups
|
186
|
+
return [ group for group in groups if group is not None ]
|
190
187
|
|
191
188
|
def get_position(self, id: str) -> Position:
|
192
189
|
"""
|
@@ -1,4 +1,4 @@
|
|
1
|
-
nsarchive/__init__.py,sha256=
|
1
|
+
nsarchive/__init__.py,sha256=HYV9gnAlM6EXu8DnF7L0c_T2FY7gl49JisrBtqQvUKA,24694
|
2
2
|
nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq9DCIlI,51764
|
3
3
|
nsarchive/cls/archives.py,sha256=Nmt3C0Zq9oGQdCXSzm_wo70VbNq89SY3dx9KKqEpoCg,2182
|
4
4
|
nsarchive/cls/base.py,sha256=z7NTvrtbeaUF1T_o-J7PL2N8axkmJek9EoKcQ8fTF9I,715
|
@@ -7,7 +7,7 @@ nsarchive/cls/entities.py,sha256=o5_zqkRFuXBF6zuFDsuOI8g0dxoL6rG2EUa0hj-lAhE,581
|
|
7
7
|
nsarchive/cls/exceptions.py,sha256=QN6Qn7cxTkGoC4lO50hBAq4gZCgo7scQvCkb-xKl6Xs,692
|
8
8
|
nsarchive/cls/republic.py,sha256=6eut6OsFoOm9TVhA41fM3NlMEA3Uhg9TCuXgl46vFko,1985
|
9
9
|
nsarchive/utils/assets.py,sha256=hd0STSpa0yT-OJlUyI_wCYXJqcBiUMQds2pZTXNNg9c,382
|
10
|
-
nsarchive-1.1.
|
11
|
-
nsarchive-1.1.
|
12
|
-
nsarchive-1.1.
|
13
|
-
nsarchive-1.1.
|
10
|
+
nsarchive-1.1.7.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
|
11
|
+
nsarchive-1.1.7.dist-info/METADATA,sha256=aGll_1Ks4q0E4jrMP-fRw-YrXwhlvrtj5LoeZvZn_nU,5629
|
12
|
+
nsarchive-1.1.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
13
|
+
nsarchive-1.1.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|