diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2022-10-08 23:39:56 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-10-08 23:39:56 +0100 |
commit | 5d5abedb7504a93bda52fc326e39255629e2c648 (patch) | |
tree | 34c126223f022ae9b6d04e62fc71e8cd61226a9d /app.py | |
parent | 41ef9c15994a0db74cd8af1e7f43e8493c17460f (diff) | |
download | eda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.tar.gz eda.gay-5d5abedb7504a93bda52fc326e39255629e2c648.zip |
Added rendering diary posts, fixed git section
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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: |