mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 15:57:14 +03:00
edshipyard.py: Fix erroneous trailing comma
Also, although we should perhaps make some attempt to ensure the decimal separator is always a full-stop... it turns out edsy.org doesn't currently support importing this style anyway, so it's moot.
This commit is contained in:
parent
da31886b34
commit
35e13defb2
@ -171,8 +171,10 @@ def export(data, filename=None) -> None: # noqa: C901, CCR001
|
||||
|
||||
multiplier = pow(min(fuel, fsd['maxfuel']) / fsd['fuelmul'], 1.0 / fsd['fuelpower']) * fsd['optmass']
|
||||
|
||||
range_unladen = multiplier / (mass + fuel) + jumpboost,
|
||||
range_unladen = multiplier / (mass + fuel) + jumpboost
|
||||
range_laden = multiplier / (mass + fuel + cargo) + jumpboost
|
||||
# As of 2021-04-07 edsy.org says text import not yet implemented, so ignore the possible issue with
|
||||
# a locale that uses comma for decimal separator.
|
||||
string += f'Range : {range_unladen:.2f} LY unladen\n {range_laden:.2f} LY laden\n'
|
||||
|
||||
except Exception:
|
||||
|
Loading…
x
Reference in New Issue
Block a user