mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 10:23:06 +03:00
removed oneline statements
This commit is contained in:
parent
43ba47ddf9
commit
ec6a09a06d
@ -68,7 +68,8 @@ def addcommodities(data):
|
|||||||
|
|
||||||
# keep a summary of modules found
|
# keep a summary of modules found
|
||||||
def addmodules(data):
|
def addmodules(data):
|
||||||
if not data['lastStarport'].get('modules'): return
|
if not data['lastStarport'].get('modules'):
|
||||||
|
return
|
||||||
|
|
||||||
outfile = 'outfitting.csv'
|
outfile = 'outfitting.csv'
|
||||||
modules = {}
|
modules = {}
|
||||||
@ -85,7 +86,8 @@ def addmodules(data):
|
|||||||
|
|
||||||
for key, module in data['lastStarport'].get('modules').items():
|
for key, module in data['lastStarport'].get('modules').items():
|
||||||
# sanity check
|
# sanity check
|
||||||
if int(key) != module.get('id'): raise AssertionError('id: %s!=%s' % (key, module['id']))
|
if int(key) != module.get('id'):
|
||||||
|
raise AssertionError('id: %s!=%s' % (key, module['id']))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
new = outfitting.lookup(module, companion.ship_map, True)
|
new = outfitting.lookup(module, companion.ship_map, True)
|
||||||
@ -127,7 +129,8 @@ def addmodules(data):
|
|||||||
|
|
||||||
# keep a summary of ships found
|
# keep a summary of ships found
|
||||||
def addships(data):
|
def addships(data):
|
||||||
if not data['lastStarport'].get('ships'): return
|
if not data['lastStarport'].get('ships'):
|
||||||
|
return
|
||||||
|
|
||||||
shipfile = 'shipyard.csv'
|
shipfile = 'shipyard.csv'
|
||||||
ships = {}
|
ships = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user