aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-10-08 23:39:56 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-10-08 23:39:56 +0100
commit5d5abedb7504a93bda52fc326e39255629e2c648 (patch)
tree34c126223f022ae9b6d04e62fc71e8cd61226a9d /app.py
parent41ef9c15994a0db74cd8af1e7f43e8493c17460f (diff)
downloadeda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.tar.gz
eda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.zip
Added rendering diary posts, fixed git section
Diffstat (limited to 'app.py')
-rwxr-xr-xapp.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app.py b/app.py
index e06ac8e..3e0c96b 100755
--- a/app.py
+++ b/app.py
@@ -67,6 +67,15 @@ def index():
def robots():
return flask.send_from_directory("static", "robots.txt")
+@app.route("/diary")
+def diary():
+ with database.Database() as db:
+ return flask.render_template(
+ "diary.html.j2",
+ **get_template_items("diary", db),
+ diary = db.get_diary()
+ )
+
@app.route("/discord")
def discord():
with database.Database() as db: