shortened line

This commit is contained in:
A_D authored and Athanasius committed 2020-08-27 12:10:09 +01:00
1 parent 8c0ab2dc75
commit a7cf83d1e5
1 file changed
+2 -1
+2 -1
View File
@@ -142,7 +142,8 @@ def addships(data):
size_pre = len(ships)
for ship in list((data['lastStarport']['ships'].get('shipyard_list') or {}).values()) + data['lastStarport']['ships'].get('unavailable_list'):
data_ships = data['lastStarport']['ships']
for ship in tuple(data_ships.get('shipyard_list', {}).values()) + data_ships.get('unavailable_list'):
# sanity check
key = ship['id']
new = {'id': int(key), 'symbol': ship['name'], 'name': companion.ship_map.get(ship['name'].lower())}