From cb13e5a22ba0fab5d8263d1ccd46af97feab6916 Mon Sep 17 00:00:00 2001 From: Kakune55 Date: Tue, 4 Jun 2024 11:51:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=9E=E7=8E=B0=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E9=A1=B5=E7=BF=BB=E9=A1=B5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/view.html | 109 ------------------------- templates/view.html.j2 | 181 +++++++++++++++++++++++++++++++++++++++++ web/page.py | 2 +- 3 files changed, 182 insertions(+), 110 deletions(-) delete mode 100644 templates/view.html create mode 100644 templates/view.html.j2 diff --git a/templates/view.html b/templates/view.html deleted file mode 100644 index bcd79c1..0000000 --- a/templates/view.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - 漫画详情页 - - - - - {% for i in index %} - {{ i }} - {% endfor %} -
-

已经到底了哦

-
-
- - - - \ No newline at end of file diff --git a/templates/view.html.j2 b/templates/view.html.j2 new file mode 100644 index 0000000..d0bf4ab --- /dev/null +++ b/templates/view.html.j2 @@ -0,0 +1,181 @@ + + + + + + + 漫画详情页 + + + + +
+ +
+ + + + diff --git a/web/page.py b/web/page.py index 2b3fe17..f3ecf60 100644 --- a/web/page.py +++ b/web/page.py @@ -77,7 +77,7 @@ def view(bookid): # 接口 data = db.file.searchByid(bookid) if len(data) == 0: return abort(404) - return render_template("view.html", id=bookid, index=range(1, data[0][3])) + return render_template("view.html.j2", id=bookid, index=range(1, data[0][3])) @page_bp.route("/upload", methods=["GET", "POST"]) # 文件上传