nsarchive 1.2.5__py3-none-any.whl → 1.2.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 CHANGED
@@ -177,7 +177,7 @@ class EntityInstance:
177
177
  if listquery:
178
178
  print("\033[1;33mAvertissement\033[0m Listquery n'est plus pris en charge et sera retiré en version 1.3.0")
179
179
 
180
- return [ self.get_entity(NSID(entity['key'])) for entity in _res ]
180
+ return [ self.get_entity(NSID(entity['key'])) for entity in _res if entity is not None ]
181
181
 
182
182
  def get_entity_groups(self, id: str | NSID) -> list[Organization]:
183
183
  """
@@ -196,6 +196,10 @@ class EntityInstance:
196
196
  groups.extend(self.fetch_entities({'_type': 'organization', 'owner_id': id}))
197
197
 
198
198
  for group in groups:
199
+ if group is None:
200
+ groups.remove(group)
201
+ continue
202
+
199
203
  for member in group.members:
200
204
  if member.id == id:
201
205
  break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nsarchive
3
- Version: 1.2.5
3
+ Version: 1.2.7
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: happex
@@ -1,4 +1,4 @@
1
- nsarchive/__init__.py,sha256=k1-bS7GjHggQ1nacx_fv9qZnqt365p5WCMzQ9rnoljA,25242
1
+ nsarchive/__init__.py,sha256=em_ZUYYNq0FQ5ggy_ArfJm_PpnAVx3IebsFs7X-uwi8,25361
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=DGDm0uD96M00-qvdKsltU9kAfAOBr85Ov0b18gTnoIM,714
@@ -7,7 +7,7 @@ nsarchive/cls/entities.py,sha256=Rvu2Q1mTWqQ-z92j-OXhoXSWked7p4tOCJm0gIlnP9c,617
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.2.5.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
11
- nsarchive-1.2.5.dist-info/METADATA,sha256=usI1BWLbz6w23NjDDUj0ZXb1ThZmHPhPkxQ6NkduRQQ,5629
12
- nsarchive-1.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- nsarchive-1.2.5.dist-info/RECORD,,
10
+ nsarchive-1.2.7.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
11
+ nsarchive-1.2.7.dist-info/METADATA,sha256=tleGPFqAzbaDj0MV1_15VEZm4j4hyHULz6InJS0XWSw,5629
12
+ nsarchive-1.2.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ nsarchive-1.2.7.dist-info/RECORD,,