diff --git a/ihatemoney/currency_convertor.py b/ihatemoney/currency_convertor.py index 32fe8709..10026eea 100644 --- a/ihatemoney/currency_convertor.py +++ b/ihatemoney/currency_convertor.py @@ -25,8 +25,12 @@ class CurrencyConverter(object, metaclass=Singleton): rates[self.no_currency] = 1.0 return rates - def get_currencies(self): - rates = [rate for rate in self.get_rates()] + def get_currencies(self, with_no_currency=True): + rates = [ + rate + for rate in self.get_rates() + if with_no_currency or rate != self.no_currency + ] rates.sort(key=lambda rate: "" if rate == self.no_currency else rate) return rates