1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

commodity.py: Make the structure passed to a join() easier to read

This commit is contained in:
Athanasius 2021-04-07 18:20:05 +01:00
parent f3383858c3
commit ce920a170f

View File

@ -60,11 +60,13 @@ def export(data, kind=COMMODITY_DEFAULT, filename=None) -> None:
))
if kind == COMMODITY_DEFAULT:
line = sep.join((
line,
str(int(commodity['meanPrice'])),
str(commodity['id']),
data['timestamp'] + '\n')
line = sep.join(
(
line,
str(int(commodity['meanPrice'])),
str(commodity['id']),
data['timestamp'] + '\n'
)
)
else: