nsarchive 2.0.0a2__tar.gz → 2.0.0a3__tar.gz

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.
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "nsarchive"
3
- version = "2.0.0-alpha.2"
3
+ version = "2.0.0-alpha.3"
4
4
  description = "API-wrapper pour récupérer des données liées à Nation"
5
5
  authors = ["happex <110610727+okayhappex@users.noreply.github.com>"]
6
6
  license = "GPL-3.0"
File without changes
File without changes