Exemplo n.º 1
0
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)
Exemplo n.º 2
0
def extract_votes():
    """ Run the extract stage """
    engine = etl_engine()
    from offenesparlament.extract import abstimmungen
    abstimmungen.load_index(engine)