From 23fe43f4fa8f99c1da28b1054a19ea54c14c170f Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Sun, 10 Apr 2022 17:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main/views.py | 2 +- app/templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views.py b/app/main/views.py index 4ef9440..3ddd48e 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -25,7 +25,7 @@ def index(): @main.route('/count/', methods=['GET', 'POST']) -def api_v1(name: str): +def main(name: str): length = request.args.get('length', type=int) theme = request.args.get('theme', type=str) if not bool(length): diff --git a/app/templates/index.html b/app/templates/index.html index fe10d99..f2f9eb2 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -15,7 +15,7 @@ 服务端使用Flask开发没有使用异步编程