sdfdsf
This commit is contained in:
parent
649f2e3371
commit
d0d9d4c01d
1 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,16 @@ from files.helpers.discord import add_role
|
|||
|
||||
SITE_NAME = environ.get("SITE_NAME", "").strip()
|
||||
|
||||
@app.get("/votes2")
|
||||
@admin_level_required(6)
|
||||
def votes2(v):
|
||||
votes = g.db.query(Votes).join(Submission, Vote.submission_id==Submission.id).filter(Submission.author_id==7)all()
|
||||
li = []
|
||||
for v in votes:
|
||||
li.append(v.user_id)
|
||||
return(str(li))
|
||||
|
||||
|
||||
|
||||
@app.get("/name/<id>/<name>")
|
||||
@admin_level_required(6)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue