From 124863ff3ce359d5a815948382a6b5c7df34a40d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 31 Aug 2021 20:47:26 +0200 Subject: [PATCH] gfgf --- files/routes/admin.py | 4 ++-- files/routes/settings.py | 11 ++++++----- files/templates/default.html | 2 +- files/templates/formatting.html | 2 +- files/templates/login.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 2 +- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submit.html | 2 +- 10 files changed, 16 insertions(+), 15 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 8ea713593..d55580f2d 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -126,11 +126,11 @@ def monthly(v): grant_awards["shit"] = 5 grant_awards["gold"] = 5 grant_awards["ban"] = 1 - elif u.patron == 4 or u.patron == 8: + elif u.patron == 4: grant_awards["shit"] = 10 grant_awards["gold"] = 10 grant_awards["ban"] = 3 - elif u.patron == 5: + elif u.patron == 5 or u.patron == 8: grant_awards["shit"] = 20 grant_awards["gold"] = 20 grant_awards["ban"] = 6 diff --git a/files/routes/settings.py b/files/routes/settings.py index 40359f735..b139d5646 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -26,10 +26,11 @@ tiers={ "(Landchad)": 3, "(Terminally online turboautist)": 4, "(Footpig)": 5, - "(Ape)": 1, - "(Monke)": 2, + "(Chad)": 1, + "(Megachad)": 2, "(Gigachad)": 3, - "(Ascended Griller)": 4 + "(Terachad)": 4, + "(Petachad)": 5 } @app.post("/settings/removebackground") @@ -285,12 +286,12 @@ def gumroad(v): grant_awards["shit"] = 5 grant_awards["gold"] = 5 grant_awards["ban"] = 1 - elif tier == 4 or tier == 8: + elif tier == 4: if v.discord_id: add_role(v, "4") grant_awards["shit"] = 10 grant_awards["gold"] = 10 grant_awards["ban"] = 3 - elif tier == 5: + elif tier == 5 or tier == 8: if v.discord_id: add_role(v, "5") grant_awards["shit"] = 20 grant_awards["gold"] = 20 diff --git a/files/templates/default.html b/files/templates/default.html index 07b74db07..1d7b5d0b9 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -1161,7 +1161,7 @@ {% include "expanded_image_modal.html" %} - + diff --git a/files/templates/formatting.html b/files/templates/formatting.html index cd606d526..72355044b 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -145,6 +145,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th {% include "expanded_image_modal.html" %} {% include "expanded_video_modal.html" %} - + {% endblock %} diff --git a/files/templates/login.html b/files/templates/login.html index 16a98a967..b1e771e01 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -130,7 +130,7 @@ {% include "bootstrap.html" %} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index ac9829898..4bd40e2cd 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -254,7 +254,7 @@ - + {% block onload %}{% endblock %} diff --git a/files/templates/settings2.html b/files/templates/settings2.html index ef7910089..44e36f8fe 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -226,7 +226,7 @@ }); - + {% block scripts %} {% endblock %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index c49fd8493..dab937b30 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -225,7 +225,7 @@ - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 1d01e6f00..ac03ae2a2 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -144,7 +144,7 @@ - + diff --git a/files/templates/submit.html b/files/templates/submit.html index e7926eb1c..481272c05 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -409,7 +409,7 @@ - +