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

collate.py: Use always '\n` line-ending on commodity file

This commit is contained in:
Athanasius 2021-04-03 12:54:38 +01:00
parent 32d87f68dd
commit dbfa50739f

View File

@ -72,7 +72,7 @@ def addcommodities(data):
if isfile(commodityfile):
__make_backup(commodityfile)
with open(commodityfile, 'w') as csvfile:
with open(commodityfile, 'w', newline='\n') as csvfile:
writer = csv.DictWriter(csvfile, ['id', 'symbol', 'category', 'name'])
writer.writeheader()