Co-authored-by: charles liu <dearcharles.liu@gmail.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Charles Liu
2025-11-21 17:49:12 +08:00
committed by GitHub
parent 9fed2dc065
commit ae126fd56f
4 changed files with 17 additions and 0 deletions

View File

@@ -121,6 +121,13 @@ class Dataset(Base):
def created_by_account(self):
return db.session.get(Account, self.created_by)
@property
def author_name(self) -> str | None:
account = db.session.get(Account, self.created_by)
if account:
return account.name
return None
@property
def latest_process_rule(self):
return (