Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor(models): remove the unread App.author_name db.session wrapper (#41983)

Eddy ZHANGe65f45f17ac8
diff --git a/api/models/model.py b/api/models/model.py
index dbdb0a00859..daea53bdccb 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -703,10 +703,6 @@ class App(Base):
return tags or []
- @property
- def author_name(self) -> str | None:
- return self.author_name_with_session(session=db.session())
-
def author_name_with_session(self, *, session: Session) -> str | None:
if self.created_by:
account = session.scalar(select(Account).where(Account.id == self.created_by))