From 5efdc43be5878520b7bc583b79f2b2007513de32 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 5 Nov 2022 16:14:52 +0200 Subject: [PATCH] fix 500 errors JC caused with a completely unnecessary refactor --- files/helpers/jinja2.py | 2 +- files/templates/settings_profile.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index dd9b800eb..281b34426 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -53,5 +53,5 @@ def inject_constants(): "CONTENT_SECURITY_POLICY_DEFAULT":CONTENT_SECURITY_POLICY_DEFAULT, "CONTENT_SECURITY_POLICY_HOME":CONTENT_SECURITY_POLICY_HOME, "TRUESCORE_DONATE_LIMIT":TRUESCORE_DONATE_LIMIT, - "BAN_EVASION_DOMAIN":BAN_EVASION_DOMAIN, + "BAN_EVASION_DOMAIN":BAN_EVASION_DOMAIN, "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST } diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 834031f9e..55d46a34f 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -29,12 +29,14 @@
{% if v.house %} -

Change your house (cost: {{HOUSE_SWITCH_COST}} coins or marseybux).

+ {% set cost = HOUSE_SWITCH_COST %} +

Change your house (cost: {{cost}} coins or marseybux).

{% if ' Founder' in v.house %}

Warning: you'll lose your founder status if you join a different house

{% endif %} {% else %} -

Join a house (cost: {{HOUSE_JOIN_COST}} coins or marseybux).

+ {% set cost = HOUSE_JOIN_COST %} +

Join a house (cost: {{cost}} coins or marseybux).

{% endif %}