aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-08-28 23:45:58 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-08-28 23:45:58 +0000
commitc807d873f7c221c2b2f22d566434d955d1c95f76 (patch)
treef4675ee3b8ffc35314f0d74866b247dec5902a0a /app.py
parent8836027e9b8b629cf64c5d70330aeb722538734f (diff)
downloadeda.gay-c807d873f7c221c2b2f22d566434d955d1c95f76.tar.gz
eda.gay-c807d873f7c221c2b2f22d566434d955d1c95f76.zip
added home redirect
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.py b/app.py
index 28d431e..d4b20f3 100644
--- a/app.py
+++ b/app.py
@@ -37,9 +37,9 @@ def get_correct_article_headers(db:database.Database, title):
for i in db_headers:
if i[0] != title:
out.append(i)
- return out + [("index", "/")]
+ return out + [("index", "/~")]
else:
- return db_headers + [("index", "/")]
+ return db_headers + [("index", "/~")]
def get_template_items(title, db):
return {
@@ -50,6 +50,7 @@ def get_template_items(title, db):
}
@app.route("/")
+@app.route("/~")
def index():
with database.Database() as db:
with open(os.path.join("static", "index.md"), "r") as f: