Example #1
0
def get_elections(db: Session = Depends(get_db)):
    return get_all(db=db, model=election_model)
Example #2
0
def get_municipalities(db: Session = Depends(get_db)):
    return get_all(db=db, model=municipality_model)
Example #3
0
def get_parties(db: Session = Depends(get_db)):
    return get_all(db=db, model=party_model)
Example #4
0
def get_states(db: Session = Depends(get_db)):
    return get_all(db=db, model=state_model)
Example #5
0
def get_all(db: Session = Depends(get_db)):
    return crud.get_all(db=db)
Example #6
0
def all_locations():
    return get_all(Location)
Example #7
0
def get_regionalelectoraldistricts(db: Session = Depends(get_db)):
    return get_all(db=db, model=regionalelectoraldistricts_model)