From 81619320481d000f3ccf215c14619f9a29cf70ec Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 15 Jul 2025 14:01:24 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Start.py | 7 +- dsLightRag/static/ChangChunManager.html | 136 ++++++++++++------------ 2 files changed, 73 insertions(+), 70 deletions(-) diff --git a/dsLightRag/Start.py b/dsLightRag/Start.py index 4c60c69f..26479237 100644 --- a/dsLightRag/Start.py +++ b/dsLightRag/Start.py @@ -348,8 +348,8 @@ async def get_articles(page: int = 1, limit: int = 10): offset = (page - 1) * limit rows = await conn.fetch( """ - SELECT a.id, a.title, a.source as source as name, - a.publish_time, a.collection_time + SELECT a.id, a.title, a.source as name, + a.publish_time, a.collection_time,a.url FROM t_wechat_articles a ORDER BY a.collection_time DESC LIMIT $1 OFFSET $2 @@ -363,7 +363,8 @@ async def get_articles(page: int = 1, limit: int = 10): "title": row[1], "source": row[2], "publish_date": row[3].strftime("%Y-%m-%d") if row[3] else None, - "collect_time": row[4].strftime("%Y-%m-%d %H:%M:%S") if row[4] else None + "collect_time": row[4].strftime("%Y-%m-%d %H:%M:%S") if row[4] else None, + "url": row[5], } for row in rows ] diff --git a/dsLightRag/static/ChangChunManager.html b/dsLightRag/static/ChangChunManager.html index a5193349..f0498218 100644 --- a/dsLightRag/static/ChangChunManager.html +++ b/dsLightRag/static/ChangChunManager.html @@ -7,78 +7,80 @@ -
-
-
-

长春市教育信息资讯库维护

-
+
+
+
+

长春市教育信息资讯库维护

- -
-
    -
  • 信息来源
  • -
  • 文章列表
  • -
-
-
-
-
-
-
-
+
+ +
+
    +
  • 文章列表
  • +
  • 信息来源
  • +
+
+
+
+
+
+
+
+ + + - + }); + \ No newline at end of file