From 2660637f33a13b00bde56ea669988b7495af5850 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 19:37:20 +0200 Subject: [PATCH] sfdsdf --- files/helpers/const.py | 16 ---------------- files/routes/awards.py | 17 ----------------- files/routes/votes.py | 4 ++-- 3 files changed, 2 insertions(+), 35 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 9b1eae29d..b48ba629d 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -448,14 +448,6 @@ AWARDS = { "color": "", "price": 600 }, - "mistletoe": { - "kind": "mistletoe", - "title": "Mistletoe", - "description": "???", - "icon": "fas fa-mistletoe", - "color": "", - "price": 1000 - }, "grinch": { "kind": "grinch", "title": "Grinch", @@ -716,14 +708,6 @@ AWARDS2 = { "color": "", "price": 600 }, - "mistletoe": { - "kind": "mistletoe", - "title": "Mistletoe", - "description": "???", - "icon": "fas fa-mistletoe", - "color": "", - "price": 1000 - }, "grinch": { "kind": "grinch", "title": "Grinch", diff --git a/files/routes/awards.py b/files/routes/awards.py index 468328a04..52767e701 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -93,15 +93,6 @@ def shop(v): "owned": 0, "price": 600 }, - "mistletoe": { - "kind": "mistletoe", - "title": "Mistletoe", - "description": "???", - "icon": "fas fa-mistletoe", - "color": "", - "owned": 0, - "price": 1000 - }, "grinch": { "kind": "grinch", "title": "Grinch", @@ -349,14 +340,6 @@ def buy(v, award): "color": "", "price": 600 }, - "mistletoe": { - "kind": "mistletoe", - "title": "Mistletoe", - "description": "???", - "icon": "fas fa-mistletoe", - "color": "", - "price": 1000 - }, "grinch": { "kind": "grinch", "title": "Grinch", diff --git a/files/routes/votes.py b/files/routes/votes.py index 7340d9d8a..1e80d21d9 100644 --- a/files/routes/votes.py +++ b/files/routes/votes.py @@ -69,7 +69,7 @@ def admin_vote_info_get(v): @validate_formkey def api_vote_post(post_id, new, v): - if v.is_banned and not v.unban_utc or new == "-1": return {"error": "forbidden."}, 403 + if v.is_banned and not v.unban_utc or new == "-1" and environ.get('DISABLE_DOWNVOTES') == '1': return {"error": "forbidden."}, 403 if new not in ["-1", "0", "1"]: abort(400) @@ -132,7 +132,7 @@ def api_vote_post(post_id, new, v): @validate_formkey def api_vote_comment(comment_id, new, v): - if v.is_banned and not v.unban_utc or new == "-1": return {"error": "forbidden."}, 403 + if v.is_banned and not v.unban_utc or new == "-1" and environ.get('DISABLE_DOWNVOTES') == '1': return {"error": "forbidden."}, 403 if new not in ["-1", "0", "1"]: abort(400)