forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-08 19:49:13 +02:00
parent 3e28a1db56
commit 774922b3f8
1 changed files with 47 additions and 47 deletions

View File

@ -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')