Changed rate limits
This commit is contained in:
1 parent
4a1b881d7b
commit
277ff32b5d
1 file changed
+2
-2
+2
-2
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user