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

loadout.py: Pre-empt the 'dangling commas' brainfart when this gets refactored/cleaned

This commit is contained in:
Athanasius 2021-05-19 18:12:45 +01:00
parent af2effb317
commit ea1882d312

View File

@ -32,6 +32,14 @@ def export(data, filename=None):
querytime = config.get_int('querytime', default=int(time.time()))
# Write
#
# When this is refactored into multi-line CHECK IT WORKS, avoiding the
# brainfart we had with dangling commas in commodity.py:export() !!!
#
filename = join(config.get_str('outdir'), '%s.%s.txt' % (ship, time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime))))
#
# When this is refactored into multi-line CHECK IT WORKS, avoiding the
# brainfart we had with dangling commas in commodity.py:export() !!!
#
with open(filename, 'wt') as h:
h.write(string)