mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
fix: ci lint
This commit is contained in:
@ -89,17 +89,15 @@ class WorkflowAppService:
|
||||
account = session.scalar(
|
||||
select(Account).where(Account.email == created_by_account)
|
||||
)
|
||||
if account:
|
||||
stmt = stmt.join(
|
||||
Account,
|
||||
and_(
|
||||
WorkflowAppLog.created_by == Account.id,
|
||||
WorkflowAppLog.created_by_role == CreatorUserRole.ACCOUNT,
|
||||
Account.id == account.id,
|
||||
),
|
||||
)
|
||||
else:
|
||||
stmt = stmt.where(False)
|
||||
account_id = account.id if account else None
|
||||
stmt = stmt.join(
|
||||
Account,
|
||||
and_(
|
||||
WorkflowAppLog.created_by == Account.id,
|
||||
WorkflowAppLog.created_by_role == CreatorUserRole.ACCOUNT,
|
||||
Account.id == account_id,
|
||||
),
|
||||
)
|
||||
|
||||
stmt = stmt.order_by(WorkflowAppLog.created_at.desc())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user