simplify code

This commit is contained in:
Stefano Ariestasia
2024-01-08 00:53:37 +09:00
parent 96a6c00acc
commit 8055140e66
@@ -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