Log sign submissions
This commit is contained in:
parent
94b030523f
commit
db3e1290e4
|
@ -13,7 +13,14 @@ class LoggingThrottle(throttling.BaseThrottle):
|
|||
method = request._request.method
|
||||
path = request._request.path
|
||||
|
||||
if path.startswith('/stats/') or path.startswith('/lockout/'):
|
||||
if method == 'OPTIONS':
|
||||
return True
|
||||
|
||||
if path.startswith('/lockout/'):
|
||||
return True
|
||||
elif path == '/stats/sign/':
|
||||
pass
|
||||
elif path.startswith('/stats/'):
|
||||
return True
|
||||
|
||||
if request.data:
|
||||
|
|
Loading…
Reference in New Issue
Block a user