fdsfds
This commit is contained in:
parent
4e2b2f97ea
commit
fa7c37c476
2 changed files with 166 additions and 144 deletions
|
@ -5,18 +5,6 @@ SITE = environ.get("DOMAIN", '').strip()
|
||||||
SITE_NAME = environ.get("SITE_NAME", '').strip()
|
SITE_NAME = environ.get("SITE_NAME", '').strip()
|
||||||
|
|
||||||
AJ_REPLACEMENTS = {
|
AJ_REPLACEMENTS = {
|
||||||
':': '',
|
|
||||||
"'": '',
|
|
||||||
'-': '',
|
|
||||||
'.': '',
|
|
||||||
'!': '',
|
|
||||||
'"': '',
|
|
||||||
';': '',
|
|
||||||
|
|
||||||
'their': '$#3$1',
|
|
||||||
'there': 'their',
|
|
||||||
'$#3$1': 'there',
|
|
||||||
|
|
||||||
"you're": '$#3$2',
|
"you're": '$#3$2',
|
||||||
'your': "you're",
|
'your': "you're",
|
||||||
'$#3$2': 'your',
|
'$#3$2': 'your',
|
||||||
|
@ -24,15 +12,6 @@ AJ_REPLACEMENTS = {
|
||||||
"too": '$#3$3',
|
"too": '$#3$3',
|
||||||
'to': "too",
|
'to': "too",
|
||||||
'$#3$3': 'to',
|
'$#3$3': 'to',
|
||||||
|
|
||||||
'$#3$3': 'to',
|
|
||||||
'$#3$3': 'to',
|
|
||||||
'$#3$3': 'to',
|
|
||||||
|
|
||||||
'she': 'they',
|
|
||||||
'her': 'they',
|
|
||||||
'he': 'they',
|
|
||||||
'him': 'they',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SLURS = {
|
SLURS = {
|
||||||
|
@ -434,32 +413,48 @@ AWARDS = {
|
||||||
"title": "Snow",
|
"title": "Snow",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-snowflake",
|
"icon": "fas fa-snowflake",
|
||||||
"color": "text-gray",
|
"color": "text-blue-200",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"gingerbread": {
|
||||||
|
"kind": "gingerbread",
|
||||||
|
"title": "Gingerbread",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-gingerbread-man",
|
||||||
|
"color": "",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"lights": {
|
||||||
|
"kind": "lights",
|
||||||
|
"title": "Lights",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-lights-holiday",
|
||||||
|
"color": "",
|
||||||
"price": 300
|
"price": 300
|
||||||
},
|
},
|
||||||
"candycane": {
|
"candycane": {
|
||||||
"kind": "candycane",
|
"kind": "candycane",
|
||||||
"title": "Candy Cane",
|
"title": "Candy Cane",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-candy-cane",
|
"icon": "fad fa-candy-cane",
|
||||||
"color": "text-gray",
|
"color": "",
|
||||||
"price": 500
|
"price": 400
|
||||||
|
},
|
||||||
|
"fireplace": {
|
||||||
|
"kind": "fireplace",
|
||||||
|
"title": "Fireplace",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-fireplace",
|
||||||
|
"color": "",
|
||||||
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
"mistletoe": {
|
||||||
"kind": "mistletoe",
|
"kind": "mistletoe",
|
||||||
"title": "Mistletoe",
|
"title": "Mistletoe",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-mistletoe",
|
"icon": "fas fa-mistletoe",
|
||||||
"color": "text-gray",
|
"color": "",
|
||||||
"price": 600
|
"price": 1000
|
||||||
},
|
|
||||||
"mariah": {
|
|
||||||
"kind": "mariah",
|
|
||||||
"title": "Mariah",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-music",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 800
|
|
||||||
},
|
},
|
||||||
"haunt": {
|
"haunt": {
|
||||||
"kind": "haunt",
|
"kind": "haunt",
|
||||||
|
@ -669,41 +664,58 @@ AWARDS = {
|
||||||
"color": "text-gold",
|
"color": "text-gold",
|
||||||
"price": 50000
|
"price": 50000
|
||||||
},
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
AWARDS2 = {
|
||||||
"snow": {
|
"snow": {
|
||||||
"kind": "snow",
|
"kind": "snow",
|
||||||
"title": "Snow",
|
"title": "Snow",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-snowflake",
|
"icon": "fas fa-snowflake",
|
||||||
"color": "text-gray",
|
"color": "text-blue-200",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"gingerbread": {
|
||||||
|
"kind": "gingerbread",
|
||||||
|
"title": "Gingerbread",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-gingerbread-man",
|
||||||
|
"color": "",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"lights": {
|
||||||
|
"kind": "lights",
|
||||||
|
"title": "Lights",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-lights-holiday",
|
||||||
|
"color": "",
|
||||||
"price": 300
|
"price": 300
|
||||||
},
|
},
|
||||||
"candycane": {
|
"candycane": {
|
||||||
"kind": "candycane",
|
"kind": "candycane",
|
||||||
"title": "Candy Cane",
|
"title": "Candy Cane",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-candy-cane",
|
"icon": "fad fa-candy-cane",
|
||||||
"color": "text-gray",
|
"color": "",
|
||||||
"price": 500
|
"price": 400
|
||||||
|
},
|
||||||
|
"fireplace": {
|
||||||
|
"kind": "fireplace",
|
||||||
|
"title": "Fireplace",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-fireplace",
|
||||||
|
"color": "",
|
||||||
|
"price": 600
|
||||||
},
|
},
|
||||||
"mistletoe": {
|
"mistletoe": {
|
||||||
"kind": "mistletoe",
|
"kind": "mistletoe",
|
||||||
"title": "Mistletoe",
|
"title": "Mistletoe",
|
||||||
"description": "???",
|
"description": "???",
|
||||||
"icon": "fas fa-mistletoe",
|
"icon": "fas fa-mistletoe",
|
||||||
"color": "text-gray",
|
"color": "",
|
||||||
"price": 600
|
"price": 1000
|
||||||
},
|
},
|
||||||
"mariah": {
|
|
||||||
"kind": "mariah",
|
|
||||||
"title": "Mariah",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-music",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 800
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
AWARDS2 = {
|
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
"title": "Shit",
|
"title": "Shit",
|
||||||
|
@ -856,30 +868,6 @@ AWARDS2 = {
|
||||||
"color": "text-gold",
|
"color": "text-gold",
|
||||||
"price": 50000
|
"price": 50000
|
||||||
},
|
},
|
||||||
"snow": {
|
|
||||||
"kind": "snow",
|
|
||||||
"title": "Snow",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-snowflake",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 600
|
|
||||||
},
|
|
||||||
"mariah": {
|
|
||||||
"kind": "mariah",
|
|
||||||
"title": "Mariah",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-music",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 800
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TROLLTITLES = [
|
TROLLTITLES = [
|
||||||
|
|
|
@ -48,6 +48,60 @@ AWARDS3 = {
|
||||||
@auth_required
|
@auth_required
|
||||||
def shop(v):
|
def shop(v):
|
||||||
AWARDS = {
|
AWARDS = {
|
||||||
|
"snow": {
|
||||||
|
"kind": "snow",
|
||||||
|
"title": "Snow",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-snowflake",
|
||||||
|
"color": "text-blue-200",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"gingerbread": {
|
||||||
|
"kind": "gingerbread",
|
||||||
|
"title": "Gingerbread",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-gingerbread-man",
|
||||||
|
"color": "",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"lights": {
|
||||||
|
"kind": "lights",
|
||||||
|
"title": "Lights",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-lights-holiday",
|
||||||
|
"color": "",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"candycane": {
|
||||||
|
"kind": "candycane",
|
||||||
|
"title": "Candy Cane",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-candy-cane",
|
||||||
|
"color": "",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 400
|
||||||
|
},
|
||||||
|
"fireplace": {
|
||||||
|
"kind": "fireplace",
|
||||||
|
"title": "Fireplace",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-fireplace",
|
||||||
|
"color": "",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 600
|
||||||
|
},
|
||||||
|
"mistletoe": {
|
||||||
|
"kind": "mistletoe",
|
||||||
|
"title": "Mistletoe",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-mistletoe",
|
||||||
|
"color": "",
|
||||||
|
"owned": 0,
|
||||||
|
"price": 1000
|
||||||
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
"title": "Shit",
|
"title": "Shit",
|
||||||
|
@ -219,42 +273,6 @@ def shop(v):
|
||||||
"owned": 0,
|
"owned": 0,
|
||||||
"price": 50000
|
"price": 50000
|
||||||
},
|
},
|
||||||
"snow": {
|
|
||||||
"kind": "snow",
|
|
||||||
"title": "Snow",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-snowflake",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"candycane": {
|
|
||||||
"kind": "candycane",
|
|
||||||
"title": "Candy Cane",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-candy-cane",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 500
|
|
||||||
},
|
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 600
|
|
||||||
},
|
|
||||||
"mariah": {
|
|
||||||
"kind": "mariah",
|
|
||||||
"title": "Mariah",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-music",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 800
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
|
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
|
||||||
|
@ -282,6 +300,54 @@ def shop(v):
|
||||||
@validate_formkey
|
@validate_formkey
|
||||||
def buy(v, award):
|
def buy(v, award):
|
||||||
AWARDS = {
|
AWARDS = {
|
||||||
|
"snow": {
|
||||||
|
"kind": "snow",
|
||||||
|
"title": "Snow",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-snowflake",
|
||||||
|
"color": "text-blue-200",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"gingerbread": {
|
||||||
|
"kind": "gingerbread",
|
||||||
|
"title": "Gingerbread",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-gingerbread-man",
|
||||||
|
"color": "",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"lights": {
|
||||||
|
"kind": "lights",
|
||||||
|
"title": "Lights",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-lights-holiday",
|
||||||
|
"color": "",
|
||||||
|
"price": 300
|
||||||
|
},
|
||||||
|
"candycane": {
|
||||||
|
"kind": "candycane",
|
||||||
|
"title": "Candy Cane",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-candy-cane",
|
||||||
|
"color": "",
|
||||||
|
"price": 400
|
||||||
|
},
|
||||||
|
"fireplace": {
|
||||||
|
"kind": "fireplace",
|
||||||
|
"title": "Fireplace",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fad fa-fireplace",
|
||||||
|
"color": "",
|
||||||
|
"price": 600
|
||||||
|
},
|
||||||
|
"mistletoe": {
|
||||||
|
"kind": "mistletoe",
|
||||||
|
"title": "Mistletoe",
|
||||||
|
"description": "???",
|
||||||
|
"icon": "fas fa-mistletoe",
|
||||||
|
"color": "",
|
||||||
|
"price": 1000
|
||||||
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
"title": "Shit",
|
"title": "Shit",
|
||||||
|
@ -434,38 +500,6 @@ def buy(v, award):
|
||||||
"color": "text-gold",
|
"color": "text-gold",
|
||||||
"price": 50000
|
"price": 50000
|
||||||
},
|
},
|
||||||
"snow": {
|
|
||||||
"kind": "snow",
|
|
||||||
"title": "Snow",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-snowflake",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"candycane": {
|
|
||||||
"kind": "candycane",
|
|
||||||
"title": "Candy Cane",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-candy-cane",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 500
|
|
||||||
},
|
|
||||||
"mistletoe": {
|
|
||||||
"kind": "mistletoe",
|
|
||||||
"title": "Mistletoe",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-mistletoe",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 600
|
|
||||||
},
|
|
||||||
"mariah": {
|
|
||||||
"kind": "mariah",
|
|
||||||
"title": "Mariah",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-music",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 800
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if award not in AWARDS: abort(400)
|
if award not in AWARDS: abort(400)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue