fix: linter

pull/12372/head
Yeuoly 1 year ago
parent 4ee4740657
commit d4a7d05043

@ -1,6 +1,6 @@
import json import json
from datetime import datetime from datetime import datetime
from typing import Optional, Any from typing import Any, Optional
import sqlalchemy as sa import sqlalchemy as sa
from deprecated import deprecated from deprecated import deprecated

@ -348,10 +348,10 @@ class AccountService:
with Session(db.engine) as session: with Session(db.engine) as session:
return ( return (
session.query(StagingAccountWhitelist) session.query(StagingAccountWhitelist)
.filter(StagingAccountWhitelist.email == email, StagingAccountWhitelist.disabled == False) # noqa: E712 .filter(StagingAccountWhitelist.email == email, StagingAccountWhitelist.disabled == False)
.first() .first()
is not None is not None
) # noqa: E712 )
@staticmethod @staticmethod
def load_logged_in_account(*, account_id: str): def load_logged_in_account(*, account_id: str):

Loading…
Cancel
Save