From e545cc8833a9408c17fc54b75d1bc66bc63f8e34 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 23 Dec 2021 20:46:07 +0200 Subject: [PATCH] dsfdfs --- files/routes/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 0202cf25e..8b2657265 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -35,7 +35,7 @@ def grassed(v): @app.get("/distribute/") @limiter.limit("1/second") @admin_level_required(3) -def distribute(v, cid): +def distribute(v, comment): try: int(cid) except: abort(400) post = g.db.query(Comment).filter_by(id=comment).first().post