From a0894f6901427238709d91ce20ce30f72dd84df2 Mon Sep 17 00:00:00 2001 From: huangdan <2741654266@qq.com> Date: Mon, 8 May 2023 14:10:16 +0800 Subject: [PATCH] =?UTF-8?q?AJAX=E8=BD=BD=E5=85=A5=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/userpage_get.html | 68 ++++++++++++++++++++++++++++----- app/user_service.py | 27 +++++++++++++ 2 files changed, 85 insertions(+), 10 deletions(-) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 8620b19..29d8a0d 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -45,22 +45,25 @@ {# {% endfor %}#} {% if result_of_generate_article != "had read all articles" %} - 下一篇 Next Article + + {% endif %} {% if session.get('visited_articles') and session.get('visited_articles')['index']>0 %} - 上一篇 Previous Article + + {% endif %} -
阅读文章并回答问题
+阅读文章并回答问题{{result_of_generate_article}}
Article added on: {{ today_article["date"] }}
Article added on: {{ today_article["date"] }}
{{ today_article["article_title"] }}
{{ today_article["article_title"] }}
{{ today_article["article_body"] }}
{{ today_article['source'] }}
{{ today_article['question'] }}
{{ today_article['source'] }}
{{ today_article['question'] }}