mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-12 15:27:14 +03:00
Fix market CSV output filenames format
I must have had a brainfart when refactoring this, leaving the trailing commas when I split this out into multi-statement rather than one big f-string.
This commit is contained in:
parent
eed09cfc4b
commit
56f016604c
@ -24,9 +24,9 @@ def export(data, kind=COMMODITY_DEFAULT, filename=None) -> None:
|
||||
querytime = config.get_int('querytime', default=int(time.time()))
|
||||
|
||||
if not filename:
|
||||
filename_system = data['lastSystem']['name'].strip(),
|
||||
filename_starport = data['lastStarport']['name'].strip(),
|
||||
filename_time = time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime)),
|
||||
filename_system = data['lastSystem']['name'].strip()
|
||||
filename_starport = data['lastStarport']['name'].strip()
|
||||
filename_time = time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime))
|
||||
filename_kind = 'csv'
|
||||
filename = f'{filename_system}.{filename_starport}.{filename_time}.{filename_kind}'
|
||||
filename = join(config.get_str('outdir'), filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user