Skip to content

Commit

Permalink
Revert "Increase length of 'no currency' string to trigger #601 on po…
Browse files Browse the repository at this point in the history
…stgresql"

This reverts commit 165a80c.
  • Loading branch information
Baptiste Jonglez committed Feb 4, 2021
1 parent 165a80c commit 0a31c59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ihatemoney/currency_convertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __call__(cls, *args, **kwargs):

class CurrencyConverter(object, metaclass=Singleton):
# Get exchange rates
no_currency = "XXXXX"
no_currency = "XXX"
api_url = "https://api.exchangeratesapi.io/latest?base=USD"

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion ihatemoney/templates/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
{{ input(form.what, inline=True) }}
{{ input(form.payer, inline=True, class="form-control custom-select") }}
{{ input(form.amount, inline=True) }}
{% if g.project.default_currency != "XXXXX" %}
{% if g.project.default_currency != "XXX" %}
{{ input(form.original_currency, inline=True) }}
{% endif %}
{{ input(form.external_link, inline=True) }}
Expand Down
2 changes: 1 addition & 1 deletion ihatemoney/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __str__(self):


def render_localized_currency(code, detailed=True):
if code == "XXXXX":
if code == "XXX":
return _("No Currency")
locale = get_locale() or "en_US"
symbol = get_currency_symbol(code, locale=locale)
Expand Down

0 comments on commit 0a31c59

Please sign in to comment.