File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def __init__(self, client):
3535 self .base = client .base
3636 self .user = client .user
3737 self .context = templating .context (client )
38- self .loginLimit = RateLimit (self .db .config [ ' WEB_LOGIN_ATTEMPTS_MIN' ] , timedelta (seconds = 60 ))
38+ self .loginLimit = RateLimit (client .db .config . WEB_LOGIN_ATTEMPTS_MIN , timedelta (seconds = 60 ))
3939
4040 def handle (self ):
4141 """Action handler procedure"""
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def setUp(self):
2626 self .client .db .Otk .data = {}
2727 self .client .db .Otk .getall = self .data_get
2828 self .client .db .Otk .set = self .data_set
29- self .client .db .config = { 'WEB_LOGIN_ATTEMPTS_MIN' : 20 }
29+ self .client .db .config . WEB_LOGIN_ATTEMPTS_MIN = 20
3030 self .client ._ok_message = []
3131 self .client ._error_message = []
3232 self .client .add_error_message = lambda x : add_message (
You can’t perform that action at this time.
0 commit comments