From 3edf08c7e482f32bc1db0cc9786b64e17b097000 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 22 十一月 2024 17:06:09 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway --- app/service/ragflow.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/app/service/ragflow.py b/app/service/ragflow.py index 34e8307..7517591 100644 --- a/app/service/ragflow.py +++ b/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"] -- Gitblit v1.8.0