forked from rDrama/rDrama
master
parent
3e28a1db56
commit
774922b3f8
|
@ -6,7 +6,10 @@ from files.helpers.const import *
|
|||
from files.classes.award import *
|
||||
from flask import g, request
|
||||
|
||||
if site_name == "Drama":
|
||||
@app.get("/shop")
|
||||
@auth_required
|
||||
def shop(v):
|
||||
if site_name == "Drama":
|
||||
AWARDS = {
|
||||
"ban": {
|
||||
"kind": "ban",
|
||||
|
@ -33,7 +36,7 @@ if site_name == "Drama":
|
|||
"price": 1000
|
||||
}
|
||||
}
|
||||
else:
|
||||
else:
|
||||
AWARDS = {
|
||||
"shit": {
|
||||
"kind": "shit",
|
||||
|
@ -53,9 +56,6 @@ else:
|
|||
}
|
||||
}
|
||||
|
||||
@app.get("/shop")
|
||||
@auth_required
|
||||
def shop(v):
|
||||
query = g.db.query(
|
||||
User.id, User.username, User.patron, User.namecolor,
|
||||
AwardRelationship.kind.label('last_award_kind'), func.count(AwardRelationship.id).label('last_award_count')
|
||||
|
|
Loading…
Reference in New Issue