示例#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)