diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-03-21 14:11:28 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-03-21 14:11:28 +0000 |
commit | 208e6eb70f0e399b84380c2112dc312c929cf7ea (patch) | |
tree | 0903e5a3ac54050d3cc0f90bda3195b4e3a83c49 /app.py | |
parent | 7c7082fbc6bbaeb48aded3e2a598130a1c0b343f (diff) | |
parent | cfc2bfbec443ea24f4af0027a077267771b0698f (diff) | |
download | eda.gay-208e6eb70f0e399b84380c2112dc312c929cf7ea.tar.gz eda.gay-208e6eb70f0e399b84380c2112dc312c929cf7ea.zip |
Merge branch 'master' of git.eda.gay:eda.gay
Diffstat (limited to 'app.py')
-rwxr-xr-x | app.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -240,6 +240,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("questions and answers", db), + curiouscat_username = db.get_curiouscat_username(), + qnas = db.get_curiouscat_qnas() + ) + if __name__ == "__main__": try: if sys.argv[1] == "--production": |