예제 #1
0
 def check_rate_limiting():
     """Check the the rate limits for each request for this blueprint."""
     if not flaskbb_config["AUTH_RATELIMIT_ENABLED"]:
         return None
     return limiter.check()
예제 #2
0
파일: views.py 프로젝트: djsilcock/flaskbb
def check_rate_limiting():
    """Check the the rate limits for each request for this blueprint."""
    if not flaskbb_config["AUTH_RATELIMIT_ENABLED"]:
        return None
    return limiter.check()