Add support for icon key in galaxies

pull/3/head
Raphaël Vinot 2017-10-09 16:57:25 +02:00
parent 1fbc9188a5
commit 0460cc20c8
1 changed files with 2 additions and 1 deletions

View File

@ -40,13 +40,14 @@ class Galaxy():
self.galaxy = galaxy self.galaxy = galaxy
self.type = self.galaxy['type'] self.type = self.galaxy['type']
self.name = self.galaxy['name'] self.name = self.galaxy['name']
self.icon = self.galaxy['icon']
self.description = self.galaxy['description'] self.description = self.galaxy['description']
self.version = self.galaxy['version'] self.version = self.galaxy['version']
self.uuid = self.galaxy['uuid'] self.uuid = self.galaxy['uuid']
def _json(self): def _json(self):
return {'type': self.type, 'name': self.name, 'description': self.description, return {'type': self.type, 'name': self.name, 'description': self.description,
'version': self.version, 'uuid': self.uuid} 'version': self.version, 'uuid': self.uuid, 'icon': self.icon}
class Galaxies(collections.Mapping): class Galaxies(collections.Mapping):