From d4a7d0504374163620ba4ec672a48870e939c8c2 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Fri, 27 Dec 2024 17:39:12 +0800 Subject: [PATCH] fix: linter --- api/models/tools.py | 2 +- api/services/account_service.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/models/tools.py b/api/models/tools.py index 2428ad0ac6..e19079301b 100644 --- a/api/models/tools.py +++ b/api/models/tools.py @@ -1,6 +1,6 @@ import json from datetime import datetime -from typing import Optional, Any +from typing import Any, Optional import sqlalchemy as sa from deprecated import deprecated diff --git a/api/services/account_service.py b/api/services/account_service.py index 797a1feb81..99c397acb0 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -348,10 +348,10 @@ class AccountService: with Session(db.engine) as session: return ( session.query(StagingAccountWhitelist) - .filter(StagingAccountWhitelist.email == email, StagingAccountWhitelist.disabled == False) # noqa: E712 + .filter(StagingAccountWhitelist.email == email, StagingAccountWhitelist.disabled == False) .first() is not None - ) # noqa: E712 + ) @staticmethod def load_logged_in_account(*, account_id: str):