1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

Removed broken link, fixed interpolation key name

Broken link didn't appear to add any further information as per
discussion in PR
This commit is contained in:
A_D 2020-07-10 23:44:11 +02:00
parent c4abe6b3ca
commit 1928379571
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -59,7 +59,7 @@ def export(data, filename=None):
mod_mount = module.get('mount')
mod_guidance = module.get('guidance')
ret = '{clazz}{rating}'.format(clazz=mod_class, rating=mod_rating)
ret = '{mod_class}{rating}'.format(mod_class=mod_class, rating=mod_rating)
if 'guidance' in module: # Missiles
ret += "/{mount}{guidance}".format(
mount=mod_mount[0] if mod_mount is not None else 'F',
@ -103,7 +103,7 @@ def export(data, filename=None):
mass += module.get('mass', 0)
# Specials
if 'Fuel Tank'in module['name']:
if 'Fuel Tank' in module['name']:
fuel += 2**int(module['class'])
name = '{} (Capacity: {})'.format(module['name'], 2**int(module['class']))
@ -176,8 +176,6 @@ def export(data, filename=None):
assert companion.ship_map[data['ship']['name'].lower()] in ships, companion.ship_map[data['ship']['name'].lower()]
try:
# TODO: broken link
# https://github.com/cmmcleod/coriolis/blob/master/app/js/shipyard/module-shipyard.js#L184
mass += ships[companion.ship_map[data['ship']['name'].lower()]]['hullMass']
string += 'Mass : {:.2f} T empty\n {:.2f} T full\n'.format(mass, mass + fuel + cargo)