From 5d5abedb7504a93bda52fc326e39255629e2c648 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 8 Oct 2022 23:39:56 +0100 Subject: Added rendering diary posts, fixed git section --- app.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app.py') 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: -- cgit v1.2.3