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:
parent
53c6f85124
commit
d1e2e2b1f3
4
stats.py
4
stats.py
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user