예제 #1
0
def get_correction_state_by_id(row_id):
    dao  = CorrectionStateDAO()
    correction_states = dao.get(row_id)
    
    return { "correction_states": correction_states.as_dict() }, 200
예제 #2
0
def get_correction_states(count, start):
    dao  = CorrectionStateDAO()
    correction_states = dao.get_all(count, start)
    
    return { "correction_states": convert_obj_list_to_dict_list(correction_states) }, 200