Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiboutas committed Jan 6, 2024
1 parent 0188a3c commit 6a47cae
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/templatetags/plan_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,6 @@ def round5(x):
return 5 * round(x / 5)


def get_currency_and_amount(money: Money):
if money.currency in STANDARD_CURRENCIES:
return money.currency, int(100 * money.amount)
elif money.currency in ZERO_DECIMAL_CURRENCIES:
return money.currency, int(money.amount)
elif money.currency in THREE_DECIMAL_CURRENCIES:
return money.currency, round5(int(1000 * money.amount))
else:
return ("EUR", int(100 * convert_money(money, "EUR").amount))


@register.simple_tag
def get_plan_price(request, plan):
"""Get price depending on the GDP per capita"""
Expand Down

0 comments on commit 6a47cae

Please sign in to comment.