|
|
|
|
@ -94,7 +94,9 @@ def acte(house=None, prince=None, acte_id=None):
|
|
|
|
|
Document.id_document == acte_doc)]
|
|
|
|
|
inst = [t.full_label for t in Institution.select().where(
|
|
|
|
|
Institution.id_institution == doc[0][1])]
|
|
|
|
|
|
|
|
|
|
prince_name = [t.name_indiv for t in Individual.select().where(
|
|
|
|
|
Individual.id_indiv == prince)]
|
|
|
|
|
print(prince_name)
|
|
|
|
|
|
|
|
|
|
# if the acte if in another house's folder,
|
|
|
|
|
# change <house> according to the begining of filename
|
|
|
|
|
@ -119,7 +121,7 @@ def acte(house=None, prince=None, acte_id=None):
|
|
|
|
|
return render_template("acte.html", house=house, prince=prince,
|
|
|
|
|
infos=q_acte, place=place[0], doc=doc[0][0], arch=inst[0],
|
|
|
|
|
diplo=diplo_t[0].replace("_", " "), state=state[0],
|
|
|
|
|
output_doc=output_doc)
|
|
|
|
|
output_doc=output_doc, name_prince=prince_name[0])
|
|
|
|
|
|
|
|
|
|
@main.route("/contact")
|
|
|
|
|
def contact() -> t.Text:
|
|
|
|
|
|