def get_elections(db: Session = Depends(get_db)): return get_all(db=db, model=election_model)
def get_municipalities(db: Session = Depends(get_db)): return get_all(db=db, model=municipality_model)
def get_parties(db: Session = Depends(get_db)): return get_all(db=db, model=party_model)
def get_states(db: Session = Depends(get_db)): return get_all(db=db, model=state_model)
def get_all(db: Session = Depends(get_db)): return crud.get_all(db=db)
def all_locations(): return get_all(Location)
def get_regionalelectoraldistricts(db: Session = Depends(get_db)): return get_all(db=db, model=regionalelectoraldistricts_model)