From b8b15ba0880272b9b6c316d55def1bfa6d20398c Mon Sep 17 00:00:00 2001 From: "Armandas Barkauskas (barkausa)" Date: Tue, 26 Oct 2021 19:12:38 +0300 Subject: [PATCH] Typo fix --- .gitignore | 3 ++- app/app.py | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index e4e5f6c..1054fbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*~ \ No newline at end of file +*~ +app/__pycache__ \ No newline at end of file diff --git a/app/app.py b/app/app.py index 2df8db2..3c181a1 100644 --- a/app/app.py +++ b/app/app.py @@ -48,19 +48,15 @@ def index(): return flask.render_template("index.html", bookList = bookQry) - @app.route("/about") def about(): return flask.render_template("about.html") - - @app.route("/login", methods=["GET", "POST"]) def login(): - prev = flask.request.args.get("prev") if not prev: - prev == "index" + prev = "index" if flask.request.method == "POST": #Get data