mirror of
https://github.com/langgenius/dify.git
synced 2025-12-24 00:07:43 +00:00
Fix/24655 (#26527)
Co-authored-by: charles liu <dearcharles.liu@gmail.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user