From 08f2a8a635066cc5b8f97dff953d234f73b137b1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 22 May 2024 18:21:10 +0300 Subject: [PATCH] temporarily relax ratelimit --- files/routes/reporting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/reporting.py b/files/routes/reporting.py index 45f8edda7..efafcda2b 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -112,8 +112,8 @@ def report_comment(cid, v): @app.post('/del_report/post//') @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) -@limiter.limit("100/minute;300/hour;2000/day", deduct_when=lambda response: response.status_code < 400) -@limiter.limit("100/minute;300/hour;2000/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) +@limiter.limit("99999/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("99999/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required def remove_report_post(v, pid, uid): report = g.db.query(Report).filter_by(post_id=pid, user_id=uid).one_or_none()