~alextee/zrythm-web

9ea30af9d17639b1c063ff362954f73be2986d1f — Alexandros Theodotou 8 months ago d40e2cb
fix jpy being rounded
2 files changed, 3 insertions(+), 3 deletions(-)

M template.py
M template/download.html.j2
M template.py => template.py +2 -2
@@ 798,8 798,8 @@ for in_file in glob.glob("template/*.j2"):
        subscription_price_for_locale = round (subscription_price * currency_rates[currency_for_locale])
        monthly_earning_for_locale = round (monthly_earning * currency_rates[currency_for_locale])
        local_salary_for_locale = round (2625 * currency_rates[currency_for_locale])
        # if JPY, round again to 100s
        if currency_for_locale == 'JPY' or currency_for_locale == 'RUB':
        # if RUB, round again to 100s
        if currency_for_locale == 'RUB':
            single_price_for_locale = round (single_price_for_locale, -2)
            bundle_price_for_locale = round (bundle_price_for_locale, -2)
            subscription_price_for_locale = round (subscription_price_for_locale, -2)

M template/download.html.j2 => template/download.html.j2 +1 -1
@@ 118,7 118,7 @@ GNU Affero General Public License for more details.
            <a href="{{ localized_accounts_url }}/products/subscription/view" class="downloads__btn btn btn--secondary">{{ _('Subscribe') }}</a>
        </div>
    </div>
    {% if currency_for_locale != 'GBP' %}
    {% if currency_for_locale != 'JPY' %}
    <div class="downloads__funds-container container">
      <small>{{ _('* Prices in this currency are estimates') }}</small>
    </div>