sfdsdf
This commit is contained in:
parent
5845ca2c7e
commit
d571a22c00
3 changed files with 2 additions and 35 deletions
|
@ -448,14 +448,6 @@ AWARDS = {
|
||||||
"color": "",
|
"color": "",
|
||||||
"price": 600
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "",
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
"grinch": {
|
"grinch": {
|
||||||
"kind": "grinch",
|
"kind": "grinch",
|
||||||
"title": "Grinch",
|
"title": "Grinch",
|
||||||
|
@ -716,14 +708,6 @@ AWARDS2 = {
|
||||||
"color": "",
|
"color": "",
|
||||||
"price": 600
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "",
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
"grinch": {
|
"grinch": {
|
||||||
"kind": "grinch",
|
"kind": "grinch",
|
||||||
"title": "Grinch",
|
"title": "Grinch",
|
||||||
|
|
|
@ -93,15 +93,6 @@ def shop(v):
|
||||||
"owned": 0,
|
"owned": 0,
|
||||||
"price": 600
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
"grinch": {
|
"grinch": {
|
||||||
"kind": "grinch",
|
"kind": "grinch",
|
||||||
"title": "Grinch",
|
"title": "Grinch",
|
||||||
|
@ -349,14 +340,6 @@ def buy(v, award):
|
||||||
"color": "",
|
"color": "",
|
||||||
"price": 600
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "",
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
"grinch": {
|
"grinch": {
|
||||||
"kind": "grinch",
|
"kind": "grinch",
|
||||||
"title": "Grinch",
|
"title": "Grinch",
|
||||||
|
|
|
@ -69,7 +69,7 @@ def admin_vote_info_get(v):
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def api_vote_post(post_id, new, v):
|
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)
|
if new not in ["-1", "0", "1"]: abort(400)
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ def api_vote_post(post_id, new, v):
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def api_vote_comment(comment_id, new, v):
|
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)
|
if new not in ["-1", "0", "1"]: abort(400)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue