simplify code
This commit is contained in:
@@ -156,9 +156,7 @@ class MarketCapFilter(IPairList):
|
|||||||
per_page='250', page='1', sparkline='false',
|
per_page='250', page='1', sparkline='false',
|
||||||
locale='en')
|
locale='en')
|
||||||
if data:
|
if data:
|
||||||
marketcap_list = []
|
marketcap_list = [row['symbol'] for row in data]
|
||||||
for row in data:
|
|
||||||
marketcap_list.append(row['symbol'])
|
|
||||||
|
|
||||||
if len(marketcap_list) > 0:
|
if len(marketcap_list) > 0:
|
||||||
self._marketcap_cache['marketcap'] = marketcap_list
|
self._marketcap_cache['marketcap'] = marketcap_list
|
||||||
|
|||||||
Reference in New Issue
Block a user