zhaoqingang
2024-11-22 8fe444007a471612f2fc1271b61619772b39920d
app/service/ragflow.py
@@ -1,3 +1,5 @@
from datetime import datetime
import httpx
from typing import Union, Dict, List
from fastapi import HTTPException
@@ -97,7 +99,8 @@
                {
                    "id": item["id"],
                    "name": item["name"],
                    "updated_time": item["update_time"]
                    "updated_time": item["update_time"],
                    "update_date": datetime.utcfromtimestamp(item["update_time"] / 1000.0).strftime('%Y-%m-%d %H:%M:%S')
                }
                for item in data
                if "id" in item and "name" in item and item["name"]