This commit is contained in:
andis
2017-08-11 18:40:13 +02:00
parent 9882fba6f3
commit 51acbfbd38
5 changed files with 47 additions and 1 deletions

View File

@@ -52,3 +52,9 @@ def store_answered(id, value):
def studium():
mth=db_session.query(MailThread).filter(MailThread.maintopic=="studium").order_by(desc(MailThread.date)).all()
return render_index(mth)
@app.route("/<maintopic>")
def maintopic(maintopic):
mth=db_session.query(MailThread).filter(MailThread.maintopic=="%s" % maintopic).order_by(desc(MailThread.date)).all()
return render_index(mth)