From 277ff32b5dcb9012466ba9dd89e4a9fda15a20a6 Mon Sep 17 00:00:00 2001 From: n07070 Date: Sun, 15 May 2022 23:34:19 +0200 Subject: [PATCH] Changed rate limits --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 57ee70c..b893991 100644 --- a/src/main.py +++ b/src/main.py @@ -96,7 +96,7 @@ def api_index(): @app.route('/api/print/sms', methods=['POST']) -@limiter.limit("2/minute", override_defaults=False) +@limiter.limit("6/minute", override_defaults=False) def api_print_sms(): app.logger.debug("Printing an sms") try: @@ -114,7 +114,7 @@ def api_print_sms(): return redirect(url_for('index')) @app.route('/api/print/img', methods=['POST']) -@limiter.limit("2/minute", override_defaults=False) +@limiter.limit("6/minute", override_defaults=False) def api_print_image(): app.logger.debug("Printing an image")