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

Removed uneeded list comprehensions

This commit is contained in:
A_D 2020-10-07 15:22:50 +02:00 committed by Athanasius
parent 53c6f85124
commit d1e2e2b1f3

View File

@ -171,7 +171,7 @@ def export_status(data, filename):
h = csv.writer(open(filename, 'w'))
h.writerow(['Category', 'Value'])
for thing in status(data):
h.writerow([x for x in thing])
h.writerow(list(thing))
# Returns id,name,shipName,system,station,value
@ -217,7 +217,7 @@ def export_ships(data, filename):
h = csv.writer(open(filename, 'w'))
h.writerow(['Id', 'Ship', 'Name', 'System', 'Station', 'Value'])
for thing in ships(data):
h.writerow([x for x in thing])
h.writerow(list(thing))
class StatsDialog():