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

replace list literals with tuples

Tuples ensure that this isnt changed at runtime
This commit is contained in:
A_D 2020-07-13 06:08:04 +02:00 committed by Athanasius
parent ed9c1c6774
commit fe3a6c11f4

View File

@ -73,7 +73,7 @@ def addmodules(data):
outfile = 'outfitting.csv'
modules = {}
fields = ['id', 'symbol', 'category', 'name', 'mount', 'guidance', 'ship', 'class', 'rating', 'entitlement']
fields = ('id', 'symbol', 'category', 'name', 'mount', 'guidance', 'ship', 'class', 'rating', 'entitlement')
# slurp existing
if isfile(outfile):
@ -134,7 +134,7 @@ def addships(data):
shipfile = 'shipyard.csv'
ships = {}
fields = ['id', 'symbol', 'name']
fields = ('id', 'symbol', 'name')
# slurp existing
if isfile(shipfile):