master
Aevann1 2021-12-23 20:46:07 +02:00
parent 8859a691e4
commit e545cc8833
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ def grassed(v):
@app.get("/distribute/<comment>") @app.get("/distribute/<comment>")
@limiter.limit("1/second") @limiter.limit("1/second")
@admin_level_required(3) @admin_level_required(3)
def distribute(v, cid): def distribute(v, comment):
try: int(cid) try: int(cid)
except: abort(400) except: abort(400)
post = g.db.query(Comment).filter_by(id=comment).first().post post = g.db.query(Comment).filter_by(id=comment).first().post