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:
Athanasius committed 2021-05-19 00:00:54 +01:00
1 parent eed09cfc4b
commit 56f016604c
1 file changed
+3 -3
+3 -3
View File
@@ -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)