mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-24 03:16:57 +03:00
collate.py: Use always '\n` line-ending on commodity file
This commit is contained in:
1 parent
32d87f68dd
commit
dbfa50739f
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user