From 9223b0e6ae82deaeebd541600708931dc3bc5d22 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Mon, 23 Sep 2024 11:00:31 +0800 Subject: [PATCH] chore: style lint --- api/services/account_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/account_service.py b/api/services/account_service.py index 7bd51454cb..688d45395a 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -333,12 +333,12 @@ class AccountService: count = redis_client.get(key) if count is None: return False - + count = int(count) if count > AccountService.LOGIN_MAX_ERROR_LIMITS: return True return False - + @staticmethod def reset_login_error_rate_limit(email: str): key = f"login_error_rate_limit:{email}"