mirror of https://github.com/langgenius/dify.git
fix: linter
This commit is contained in:
parent
4ee4740657
commit
d4a7d05043
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue