def extract_base(): """ Run the extract stage """ engine = etl_engine() from offenesparlament.extract.xml import ausschuss ausschuss.load_index(engine) from offenesparlament.extract.xml import news #news.load_index(engine) from offenesparlament.extract.xml import mdb mdb.load_index(engine)
def extract(): """ Run the extract stage """ db, _ = WebStore(app.config["STAGING_URL"]) from offenesparlament.extract.xml import ausschuss ausschuss.load_index(db) from offenesparlament.extract.xml import news news.load_index(db) from offenesparlament.extract.xml import mdb mdb.load_index(db) from offenesparlament.extract import mediathek mediathek.load_sessions(db) from offenesparlament.extract import abstimmungen abstimmungen.load_index(db) from offenesparlament.extract import dip dip.load_dip(db)