Removed uneeded list comprehensions

This commit is contained in:
A_D authored and Athanasius committed 2021-04-01 14:45:44 +01:00
1 parent 53c6f85124
commit d1e2e2b1f3
1 file changed
+2 -2
+2 -2
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():