Browse Source

sort currencies in currencies.json

2.9.x
ThomasV 7 years ago
parent
commit
321adf600a
  1. 1000
      lib/currencies.json
  2. 2
      lib/exchange_rate.py

1000
lib/currencies.json

File diff suppressed because it is too large

2
lib/exchange_rate.py

@ -84,7 +84,7 @@ class ExchangeBase(PrintError):
def get_currencies(self):
rates = self.get_rates('')
return [str(a) for (a, b) in rates.iteritems() if b is not None]
return sorted([str(a) for (a, b) in rates.iteritems() if b is not None and len(a)==3])
class BitcoinAverage(ExchangeBase):

Loading…
Cancel
Save