forked from rDrama/rDrama
master
parent
3e28a1db56
commit
774922b3f8
|
@ -6,6 +6,9 @@ from files.helpers.const import *
|
|||
from files.classes.award import *
|
||||
from flask import g, request
|
||||
|
||||
@app.get("/shop")
|
||||
@auth_required
|
||||
def shop(v):
|
||||
if site_name == "Drama":
|
||||
AWARDS = {
|
||||
"ban": {
|
||||
|
@ -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