def load(): """ Load and index staging DB into production """ engine = etl_engine() from offenesparlament.load import load load.load(engine) load.aggregate() from offenesparlament.load import index index.index()
def load(): """ Load and index staging DB into production """ db, _ = WebStore(app.config["STAGING_URL"]) from offenesparlament.load import load load.load(db) from offenesparlament.load import index index.index(db)