diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-02-27 00:05:41 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-02-27 00:05:41 +0000 |
commit | 7c53f89ccdd92e308d14d069e2e070f7a1c2da26 (patch) | |
tree | b16a2405e88070abe29b909314cfbd5b3d21d2cf /app.py | |
parent | 2831eb8af07b1c387f17cf4d9a4b3a1b1aa47bb5 (diff) | |
download | eda.gay-7c53f89ccdd92e308d14d069e2e070f7a1c2da26.tar.gz eda.gay-7c53f89ccdd92e308d14d069e2e070f7a1c2da26.zip |
Added q&a page
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -236,6 +236,16 @@ def serve_random(): localimg = "/img/random.jpg?seed=%i" % random.randint(0, 9999) ) +@app.route("/questions") +def serve_questions(): + with database.Database() as db: + return flask.render_template( + "questions.html.j2", + **get_template_items("random image", db), + curiouscat_username = db.get_curiouscat_username(), + qnas = db.get_curiouscat_qnas() + ) + if __name__ == "__main__": try: if sys.argv[1] == "--production": |