regular_costs #5

Merged
jlusiardi merged 19 commits from regular_costs into master 2021-06-18 20:20:13 +02:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 4196111529 - Show all commits

View File

@ -15,10 +15,11 @@ from .forms import *
app = Flask(__name__)
app.config.from_object(config[os.getenv('FLASK_CONFIG') or 'default'])
# applies to all routes, so choose limits wisely!
limiter = Limiter(
app,
key_func=get_remote_address,
default_limits=["200 per day", "50 per hour"]
# default_limits=["500 per second"]
)