Fix ETH duplicate in CoinGecko

This commit is contained in:
Verbalinsurection 2022-01-25 11:20:49 +01:00
parent 82e193d9f0
commit 31211a33fd
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ class CryptoToFiatConverter:
else:
return None
found = [x for x in self._coinlistings if x['symbol'] == crypto_symbol]
if crypto_symbol == 'eth':
found = [x for x in self._coinlistings if x['id'] == 'ethereum']
if len(found) == 1:
return found[0]['id']