fdsfds
parent
a4925d623f
commit
08b1e1cef7
|
@ -166,69 +166,6 @@ def shop(v):
|
||||||
"owned": 0,
|
"owned": 0,
|
||||||
"price": 40000
|
"price": 40000
|
||||||
},
|
},
|
||||||
"haunt": {
|
|
||||||
"kind": "haunt",
|
|
||||||
"title": "Haunt",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-book-dead",
|
|
||||||
"color": "text-warning",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 500
|
|
||||||
},
|
|
||||||
"upsidedown": {
|
|
||||||
"kind": "upsidedown",
|
|
||||||
"title": "The Upside Down",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fad fa-lights-holiday",
|
|
||||||
"color": "",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 400
|
|
||||||
},
|
|
||||||
"stab": {
|
|
||||||
"kind": "stab",
|
|
||||||
"title": "Stab",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-knife-kitchen",
|
|
||||||
"color": "text-red",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"ghosts": {
|
|
||||||
"kind": "ghosts",
|
|
||||||
"title": "Ghosts",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-ghost",
|
|
||||||
"color": "text-white",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"spiders": {
|
|
||||||
"kind": "spiders",
|
|
||||||
"title": "Spiders",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-spider",
|
|
||||||
"color": "text-black",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"fog": {
|
|
||||||
"kind": "fog",
|
|
||||||
"title": "Fog",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-smoke",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"lootbox": {
|
|
||||||
"kind": "lootbox",
|
|
||||||
"title": "Homoween Lootbox",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-treasure-chest",
|
|
||||||
"color": "text-orange",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
AWARDS = {
|
AWARDS = {
|
||||||
|
@ -425,62 +362,6 @@ def buy(v, award):
|
||||||
"color": "text-success",
|
"color": "text-success",
|
||||||
"price": 40000
|
"price": 40000
|
||||||
},
|
},
|
||||||
"haunt": {
|
|
||||||
"kind": "haunt",
|
|
||||||
"title": "Haunt",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-book-dead",
|
|
||||||
"color": "text-warning",
|
|
||||||
"price": 500
|
|
||||||
},
|
|
||||||
"upsidedown": {
|
|
||||||
"kind": "upsidedown",
|
|
||||||
"title": "The Upside Down",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fad fa-lights-holiday",
|
|
||||||
"color": "",
|
|
||||||
"price": 400
|
|
||||||
},
|
|
||||||
"stab": {
|
|
||||||
"kind": "stab",
|
|
||||||
"title": "Stab",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-knife-kitchen",
|
|
||||||
"color": "text-red",
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"ghosts": {
|
|
||||||
"kind": "ghosts",
|
|
||||||
"title": "Ghosts",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-ghost",
|
|
||||||
"color": "text-white",
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"spiders": {
|
|
||||||
"kind": "spiders",
|
|
||||||
"title": "Spiders",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-spider",
|
|
||||||
"color": "text-black",
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"fog": {
|
|
||||||
"kind": "fog",
|
|
||||||
"title": "Fog",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-smoke",
|
|
||||||
"color": "text-gray",
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"lootbox": {
|
|
||||||
"kind": "lootbox",
|
|
||||||
"title": "Homoween Lootbox",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-treasure-chest",
|
|
||||||
"color": "text-orange",
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
AWARDS = {
|
AWARDS = {
|
||||||
|
@ -1018,69 +899,6 @@ def items(v):
|
||||||
"owned": 0,
|
"owned": 0,
|
||||||
"price": 40000
|
"price": 40000
|
||||||
},
|
},
|
||||||
"haunt": {
|
|
||||||
"kind": "haunt",
|
|
||||||
"title": "Haunt",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-book-dead",
|
|
||||||
"color": "text-warning",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 500
|
|
||||||
},
|
|
||||||
"upsidedown": {
|
|
||||||
"kind": "upsidedown",
|
|
||||||
"title": "The Upside Down",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fad fa-lights-holiday",
|
|
||||||
"color": "",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 400
|
|
||||||
},
|
|
||||||
"stab": {
|
|
||||||
"kind": "stab",
|
|
||||||
"title": "Stab",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-knife-kitchen",
|
|
||||||
"color": "text-red",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 300
|
|
||||||
},
|
|
||||||
"ghosts": {
|
|
||||||
"kind": "ghosts",
|
|
||||||
"title": "Ghosts",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-ghost",
|
|
||||||
"color": "text-white",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"spiders": {
|
|
||||||
"kind": "spiders",
|
|
||||||
"title": "Spiders",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-spider",
|
|
||||||
"color": "text-black",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"fog": {
|
|
||||||
"kind": "fog",
|
|
||||||
"title": "Fog",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-smoke",
|
|
||||||
"color": "text-gray",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 200
|
|
||||||
},
|
|
||||||
"lootbox": {
|
|
||||||
"kind": "lootbox",
|
|
||||||
"title": "Homoween Lootbox",
|
|
||||||
"description": "???",
|
|
||||||
"icon": "fas fa-treasure-chest",
|
|
||||||
"color": "text-orange",
|
|
||||||
"owned": 0,
|
|
||||||
"price": 1000
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all(): AWARDS[useraward.kind]["owned"] += 1
|
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all(): AWARDS[useraward.kind]["owned"] += 1
|
||||||
|
|
Loading…
Reference in New Issue