Пример #1
0
def get_correction_by_id(row_id):
    dao = CorrectionDAO( DBConnectionManager.get_connection( Config.database['schema']) )
    corrections = dao.get(row_id)

    return { "corrections": corrections.as_dict() }, 200
Пример #2
0
def get_corrections(count, start):
    dao  = CorrectionDAO( DBConnectionManager.get_connection( Config.database['schema']) )
    corrections = dao.get_all(count, start)

    return { "corrections": convert_obj_list_to_dict_list(corrections) }, 200