diff --git a/ihatemoney/currency_convertor.py b/ihatemoney/currency_convertor.py index 75fa8342..8d42de36 100644 --- a/ihatemoney/currency_convertor.py +++ b/ihatemoney/currency_convertor.py @@ -13,7 +13,7 @@ class Singleton(type): class CurrencyConverter(object, metaclass=Singleton): # Get exchange rates - default = "No Currency" + default = "XXX" api_url = "https://api.exchangeratesapi.io/latest?base=USD" def __init__(self): diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 95088eb3..2369477d 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -117,7 +117,7 @@ {{ _("For what?") }} {{ _("For whom?") }} {{ _("How much?") }} - {% if g.project.default_currency != "No Currency" %} + {% if g.project.default_currency != "XXX" %} {{ _("Amount in %(currency)s", currency=g.project.default_currency) }} {%- else -%} {{ _("Amount") }} @@ -143,7 +143,7 @@ {{ bill.owers|join(', ', 'name') }} {%- endif %} - {% if bill.original_currency != "No Currency" %} + {% if bill.original_currency != "XXX" %} {{ "%0.2f"|format(bill.amount) }} {{bill.original_currency}} ({{ "%0.2f"|format(bill.pay_each_default(bill.amount)) }} {{bill.original_currency}} {{ _(" each") }}) {%- else -%} {{ "%0.2f"|format(bill.amount) }} ({{ "%0.2f"|format(bill.pay_each_default(bill.amount)) }} {{ _(" each") }})