mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Replaced missed modulo formatting
This commit is contained in:
parent
a6e6b6353d
commit
c4abe6b3ca
@ -105,11 +105,11 @@ def export(data, filename=None):
|
|||||||
# Specials
|
# Specials
|
||||||
if 'Fuel Tank'in module['name']:
|
if 'Fuel Tank'in module['name']:
|
||||||
fuel += 2**int(module['class'])
|
fuel += 2**int(module['class'])
|
||||||
name = '%s (Capacity: %d)' % (module['name'], 2**int(module['class']))
|
name = '{} (Capacity: {})'.format(module['name'], 2**int(module['class']))
|
||||||
|
|
||||||
elif 'Cargo Rack' in module['name']:
|
elif 'Cargo Rack' in module['name']:
|
||||||
cargo += 2**int(module['class'])
|
cargo += 2**int(module['class'])
|
||||||
name = '%s (Capacity: %d)' % (module['name'], 2**int(module['class']))
|
name = '{} (Capacity: {})'.format(module['name'], 2**int(module['class']))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
name = module['name']
|
name = module['name']
|
||||||
@ -135,11 +135,11 @@ def export(data, filename=None):
|
|||||||
loadout[slot[-1]].append(cr + name)
|
loadout[slot[-1]].append(cr + name)
|
||||||
|
|
||||||
elif __debug__ and not slot.lower().startswith('planetaryapproachsuite'):
|
elif __debug__ and not slot.lower().startswith('planetaryapproachsuite'):
|
||||||
print('EDShipyard: Unknown slot %s' % slot)
|
print('EDShipyard: Unknown slot {}'.format(slot))
|
||||||
|
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
print('EDShipyard: %s' % e)
|
print('EDShipyard: {}'.format(e))
|
||||||
|
|
||||||
continue # Silently skip unrecognized modules
|
continue # Silently skip unrecognized modules
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user