simplify code

This commit is contained in:
Stefano Ariestasia
2024-01-08 00:53:37 +09:00
parent 96a6c00acc
commit 8055140e66

View File

@@ -156,9 +156,7 @@ class MarketCapFilter(IPairList):
per_page='250', page='1', sparkline='false',
locale='en')
if data:
marketcap_list = []
for row in data:
marketcap_list.append(row['symbol'])
marketcap_list = [row['symbol'] for row in data]
if len(marketcap_list) > 0:
self._marketcap_cache['marketcap'] = marketcap_list