From c1768114de381e37e272e9faf7db8e95a93ff381 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 11 十一月 2024 16:37:12 +0800
Subject: [PATCH] role group user..

---
 app/service/ragflow.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/app/service/ragflow.py b/app/service/ragflow.py
index 94bd9ac..1677ed5 100644
--- a/app/service/ragflow.py
+++ b/app/service/ragflow.py
@@ -1,7 +1,5 @@
 import httpx
 from typing import Union, Dict, List
-
-from Tools.scripts.objgraph import ignore
 from fastapi import HTTPException
 from starlette import status
 
@@ -152,10 +150,7 @@
         url = f"{self.base_url}/v1/tenant/{tenant_id}/user"
         headers = {"Authorization": token}
         data = {"email": email, "user_id": user_id}
-        print(url)
-        print(data)
         async with httpx.AsyncClient(timeout=60) as client:
             response = await client.post(url, headers=headers, json=data)
-            print(response.text)
             if response.status_code != 200:
                 raise Exception(f"Ragflow add user to tenant failed: {response.text}")

--
Gitblit v1.8.0