From cbbad80e96996204a1a8f24ca8cd85819d4a9433 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 21 Oct 2021 23:25:21 +0200 Subject: [PATCH] disabled --- files/helpers/const.py | 62 +++++++++---------- files/routes/awards.py | 127 +++++++++++++++++++------------------- files/templates/shop.html | 2 +- 3 files changed, 96 insertions(+), 95 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 96b82821f..1d6aa0f6d 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -129,30 +129,6 @@ def censor_slurs(body: str, logged_user) -> str: if SITE_NAME == "Drama": AWARDS = { - "ban": { - "kind": "ban", - "title": "1-Day Ban", - "description": "Bans the author for a day.", - "icon": "fas fa-gavel", - "color": "text-danger", - "price": 3000 - }, - "unban": { - "kind": "unban", - "title": "1-Day Unban", - "description": "Removes 1 day from the ban duration of the recipient.", - "icon": "fas fa-gavel", - "color": "text-success", - "price": 3500 - }, - "grass": { - "kind": "grass", - "title": "Grass", - "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", - "icon": "fas fa-seedling", - "color": "text-success", - "price": 10000 - }, "shit": { "kind": "shit", "title": "Shit", @@ -193,6 +169,14 @@ if SITE_NAME == "Drama": "color": "text-black", "price": 1000 }, + "flairlock": { + "kind": "flairlock", + "title": "1-Day Flairlock", + "description": "Sets a flair for the author and locks it or 24 hours.", + "icon": "fas fa-lock", + "color": "text-black", + "price": 1250 + }, "agendaposter": { "kind": "agendaposter", "title": "Agendaposter", @@ -201,13 +185,29 @@ if SITE_NAME == "Drama": "color": "text-purple", "price": 2000 }, - "flairlock": { - "kind": "flairlock", - "title": "1-Day Flairlock", - "description": "Sets a flair for the author and locks it or 24 hours.", - "icon": "fas fa-lock", - "color": "text-black", - "price": 1250 + "ban": { + "kind": "ban", + "title": "1-Day Ban", + "description": "Bans the author for a day.", + "icon": "fas fa-gavel", + "color": "text-danger", + "price": 3000 + }, + "unban": { + "kind": "unban", + "title": "1-Day Unban", + "description": "Removes 1 day from the ban duration of the recipient.", + "icon": "fas fa-gavel", + "color": "text-success", + "price": 3500 + }, + "grass": { + "kind": "grass", + "title": "Grass", + "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", + "icon": "fas fa-seedling", + "color": "text-success", + "price": 10000 }, } else: diff --git a/files/routes/awards.py b/files/routes/awards.py index a26626149..f7d276fe1 100755 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -41,30 +41,6 @@ AWARDS2 = { def shop(v): if site_name == "Drama": AWARDS = { - "ban": { - "kind": "ban", - "title": "1-Day Ban", - "description": "Bans the author for a day.", - "icon": "fas fa-gavel", - "color": "text-danger", - "price": 3000 - }, - "unban": { - "kind": "unban", - "title": "1-Day Unban", - "description": "Removes 1 day from the ban duration of the recipient.", - "icon": "fas fa-gavel", - "color": "text-success", - "price": 3500 - }, - "grass": { - "kind": "grass", - "title": "Grass", - "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", - "icon": "fas fa-seedling", - "color": "text-success", - "price": 10000 - }, "shit": { "kind": "shit", "title": "Shit", @@ -105,6 +81,14 @@ def shop(v): "color": "text-black", "price": 1000 }, + "flairlock": { + "kind": "flairlock", + "title": "1-Day Flairlock", + "description": "Sets a flair for the author and locks it or 24 hours.", + "icon": "fas fa-lock", + "color": "text-black", + "price": 1250 + }, "agendaposter": { "kind": "agendaposter", "title": "Agendaposter", @@ -113,13 +97,29 @@ def shop(v): "color": "text-purple", "price": 2000 }, - "flairlock": { - "kind": "flairlock", - "title": "1-Day Flairlock", - "description": "Sets a flair for the author and locks it or 24 hours.", - "icon": "fas fa-lock", - "color": "text-black", - "price": 1250 + "ban": { + "kind": "ban", + "title": "1-Day Ban", + "description": "Bans the author for a day.", + "icon": "fas fa-gavel", + "color": "text-danger", + "price": 3000 + }, + "unban": { + "kind": "unban", + "title": "1-Day Unban", + "description": "Removes 1 day from the ban duration of the recipient.", + "icon": "fas fa-gavel", + "color": "text-success", + "price": 3500 + }, + "grass": { + "kind": "grass", + "title": "Grass", + "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", + "icon": "fas fa-seedling", + "color": "text-success", + "price": 10000 }, } else: @@ -199,30 +199,6 @@ def shop(v): def buy(v, award): if site_name == "Drama": AWARDS = { - "ban": { - "kind": "ban", - "title": "1-Day Ban", - "description": "Bans the author for a day.", - "icon": "fas fa-gavel", - "color": "text-danger", - "price": 3000 - }, - "unban": { - "kind": "unban", - "title": "1-Day Unban", - "description": "Removes 1 day from the ban duration of the recipient.", - "icon": "fas fa-gavel", - "color": "text-success", - "price": 3500 - }, - "grass": { - "kind": "grass", - "title": "Grass", - "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", - "icon": "fas fa-seedling", - "color": "text-success", - "price": 10000 - }, "shit": { "kind": "shit", "title": "Shit", @@ -263,14 +239,6 @@ def buy(v, award): "color": "text-black", "price": 1000 }, - "agendaposter": { - "kind": "agendaposter", - "title": "Agendaposter", - "description": "Forces the agendaposter theme on the author for 24 hours.", - "icon": "fas fa-snooze", - "color": "text-purple", - "price": 2000 - }, "flairlock": { "kind": "flairlock", "title": "1-Day Flairlock", @@ -279,6 +247,39 @@ def buy(v, award): "color": "text-black", "price": 1250 }, + "agendaposter": { + "kind": "agendaposter", + "title": "Agendaposter", + "description": "Forces the agendaposter theme on the author for 24 hours.", + "icon": "fas fa-snooze", + "color": "text-purple", + "price": 2000 + }, + "ban": { + "kind": "ban", + "title": "1-Day Ban", + "description": "Bans the author for a day.", + "icon": "fas fa-gavel", + "color": "text-danger", + "price": 3000 + }, + "unban": { + "kind": "unban", + "title": "1-Day Unban", + "description": "Removes 1 day from the ban duration of the recipient.", + "icon": "fas fa-gavel", + "color": "text-success", + "price": 3500 + }, + "grass": { + "kind": "grass", + "title": "Grass", + "description": "Ban the author permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", + "icon": "fas fa-seedling", + "color": "text-success", + "price": 10000 + }, + } else: AWARDS = { diff --git a/files/templates/shop.html b/files/templates/shop.html index f69f021d3..1abac3d01 100644 --- a/files/templates/shop.html +++ b/files/templates/shop.html @@ -87,7 +87,7 @@ {{a['description']}} {{a['price']}} {% set kind = a['kind'] %} - Buy + Buy {% endfor %}