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