|
|
|
|
@ -32,14 +32,16 @@ def corpora_all():
|
|
|
|
|
@main.route("/actes/<house>") # dont put a slash at the end
|
|
|
|
|
def actes(house):
|
|
|
|
|
"""actes route"""
|
|
|
|
|
return render_template("corpus.html", house=house)
|
|
|
|
|
prince_q = [t.name_indiv for t in Individual.select().where(
|
|
|
|
|
Individual.role_indiv == 'prince')]
|
|
|
|
|
house_q = [t.id_duke for t in Duke.select().where(Duke.indiv_duke == prince_q[0])]
|
|
|
|
|
return render_template("corpus.html", house=house, princes=prince_q)
|
|
|
|
|
|
|
|
|
|
@main.route("/actes/<house>/<prince>") # dont put a slash at the end
|
|
|
|
|
def prince_corpus(house=None, prince=None):
|
|
|
|
|
"""copora prince route"""
|
|
|
|
|
return render_template("prince_corpus.html", house=house, prince=prince)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@main.route("/contact")
|
|
|
|
|
def contact() -> t.Text:
|
|
|
|
|
"""Displays the Contact page"""
|
|
|
|
|
|