コード例 #1
0
ファイル: views.py プロジェクト: ChaoticOnyx/OnyxForum
 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()