|
|
|
@ -1,6 +1,6 @@
|
|
|
|
import typing as t
|
|
|
|
import typing as t
|
|
|
|
import urllib.parse
|
|
|
|
import urllib.parse
|
|
|
|
from unidecode import unidecode
|
|
|
|
from unidecode import unidecode # to remove accents in house and prince names in the urls
|
|
|
|
|
|
|
|
|
|
|
|
from flask import Blueprint, abort, render_template, request, send_from_directory
|
|
|
|
from flask import Blueprint, abort, render_template, request, send_from_directory
|
|
|
|
from pymongo import MongoClient
|
|
|
|
from pymongo import MongoClient
|
|
|
|
@ -120,6 +120,7 @@ def acte(house=None, prince=None, dateitem=None):
|
|
|
|
#infos=None, place=None, doc=None, arch=None,
|
|
|
|
#infos=None, place=None, doc=None, arch=None,
|
|
|
|
#diplo=diplo_t[0].replace("_", " "), state=state[0],
|
|
|
|
#diplo=diplo_t[0].replace("_", " "), state=state[0],
|
|
|
|
output_doc=result.get('xmlcontent'), name_prince=result.get("prince_name"),
|
|
|
|
output_doc=result.get('xmlcontent'), name_prince=result.get("prince_name"),
|
|
|
|
|
|
|
|
folium = result.get("folium"),
|
|
|
|
transcribers=result.get('transcribers'))
|
|
|
|
transcribers=result.get('transcribers'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|