nsarchive 2.0.0a2__py3-none-any.whl → 2.0.0a3__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/cls/entities.py CHANGED
@@ -141,7 +141,7 @@ class Organization(Entity):
141
141
  self.members: list[GroupMember] = []
142
142
 
143
143
  self.parts: dict[NSID, int] = {
144
- self.owner.id: 1
144
+ self.id: 1
145
145
  }
146
146
 
147
147
  def add_certification(self, certification: str) -> None:
@@ -67,7 +67,7 @@ class EntityInstance(Instance):
67
67
 
68
68
  for _member in _data['members']:
69
69
  member = GroupMember(_member['id'])
70
- member.permission_level = _member['level']
70
+ member.permission_level = _member['position']
71
71
 
72
72
  _member_profile = self.get_entity(member.id)
73
73
 
@@ -169,7 +169,7 @@ class EntityInstance(Instance):
169
169
 
170
170
  _res = self.fetch('entities', **query)
171
171
 
172
- return [ self.get_entity(NSID(entity['key'])) for entity in _res if entity is not None ]
172
+ return [ self.get_entity(NSID(entity['id'])) for entity in _res if entity is not None ]
173
173
 
174
174
  def get_entity_groups(self, id: str | NSID) -> list[Organization]:
175
175
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nsarchive
3
- Version: 2.0.0a2
3
+ Version: 2.0.0a3
4
4
  Summary: API-wrapper pour récupérer des données liées à Nation
5
5
  License: GPL-3.0
6
6
  Author: happex
@@ -3,14 +3,14 @@ nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq
3
3
  nsarchive/cls/archives.py,sha256=HHQhGKdnl7vD5zC8-bbXeQLhp8A98bBlneJTkztOmMg,2007
4
4
  nsarchive/cls/base.py,sha256=jJOsGgnURxR8YwJiIHgodPOmJ31LOtYDVbz33kIM5Yg,3512
5
5
  nsarchive/cls/economy.py,sha256=-eV8R5KMXSeXcKEu2G8OP1UgYgb0X6uks0aD2XhlbcU,1220
6
- nsarchive/cls/entities.py,sha256=i7tlx-fDpwGWsnGgpXrLcASLHYQjf1dXUCdr1mKc4Ik,6629
6
+ nsarchive/cls/entities.py,sha256=h5lRLszZQ48As0VzkK3dkXLKOvdrHOFivtTdbMvd5PU,6623
7
7
  nsarchive/cls/exceptions.py,sha256=QN6Qn7cxTkGoC4lO50hBAq4gZCgo7scQvCkb-xKl6Xs,692
8
8
  nsarchive/cls/republic.py,sha256=F6il2FrvCoutHxQlW3xM36GaFfIqdorg2jicMAlPdUo,2503
9
9
  nsarchive/instances/_economy.py,sha256=kaFRm6SpWCgvkv-PTVicGztL3e34gSy6WZQDiLZLaT4,6346
10
- nsarchive/instances/_entities.py,sha256=QX2bfTXTGIJ_GaesIEXzjpDneUFRV4os_ka8kOoh3-Y,9763
10
+ nsarchive/instances/_entities.py,sha256=O64MHs_LRbJfuaIOFLKmPi1SIBlQz-aNk95ZzlvGP1k,9765
11
11
  nsarchive/instances/_republic.py,sha256=TBfgILDJujbp5tiEgbHGnP_uuW1tdAzGUtkwJmuMogE,10063
12
12
  nsarchive/utils/assets.py,sha256=WGC03K1VZ5LwGzcVXbqphtGBZ_Vjso-1hmbIkpgL_X8,382
13
- nsarchive-2.0.0a2.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
14
- nsarchive-2.0.0a2.dist-info/METADATA,sha256=Rt2Rho6v3VRoRgMbPRkZ_02FH9wkPzSXpz7lJDANE-Q,5697
15
- nsarchive-2.0.0a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
- nsarchive-2.0.0a2.dist-info/RECORD,,
13
+ nsarchive-2.0.0a3.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
14
+ nsarchive-2.0.0a3.dist-info/METADATA,sha256=287bbQVMbfutjiSzRXH-HBXQBVX207tJgOg2Wp90QRs,5697
15
+ nsarchive-2.0.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
+ nsarchive-2.0.0a3.dist-info/RECORD,,