From e65f45f17ac863e4e6d813d5356e56fc36fb31bf Mon Sep 17 00:00:00 2001 From: Eddy ZHANG Date: Wed, 9 Sep 2026 05:16:14 +0000 Subject: [PATCH] refactor(models): remove the unread App.author_name db.session wrapper (#41983) --- api/models/model.py | 4 ---- 1 file changed, 4 deletions(-) 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))