瀏覽代碼

fix: can not test custom tool (#15606)

tags/1.1.0
非法操作 7 月之前
父節點
當前提交
5019547d33
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      api/models/tools.py

+ 2
- 0
api/models/tools.py 查看文件

@@ -102,6 +102,8 @@ class ApiToolProvider(Base):

@property
def user(self) -> Account | None:
if not self.user_id:
return None
return db.session.query(Account).filter(Account.id == self.user_id).first()

@property

Loading…
取消
儲存