mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 16:50:34 +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 = csv.writer(open(filename, 'w'))
|
||||||
h.writerow(['Category', 'Value'])
|
h.writerow(['Category', 'Value'])
|
||||||
for thing in status(data):
|
for thing in status(data):
|
||||||
h.writerow([x for x in thing])
|
h.writerow(list(thing))
|
||||||
|
|
||||||
|
|
||||||
# Returns id,name,shipName,system,station,value
|
# Returns id,name,shipName,system,station,value
|
||||||
@ -217,7 +217,7 @@ def export_ships(data, filename):
|
|||||||
h = csv.writer(open(filename, 'w'))
|
h = csv.writer(open(filename, 'w'))
|
||||||
h.writerow(['Id', 'Ship', 'Name', 'System', 'Station', 'Value'])
|
h.writerow(['Id', 'Ship', 'Name', 'System', 'Station', 'Value'])
|
||||||
for thing in ships(data):
|
for thing in ships(data):
|
||||||
h.writerow([x for x in thing])
|
h.writerow(list(thing))
|
||||||
|
|
||||||
|
|
||||||
class StatsDialog():
|
class StatsDialog():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user