Exemplo n.º 1
0
def delete_group(name, faculty_name):
    fac_id = faculty.get_faculty_id_by_name(faculty_name)
    group_id = group.get_group_id_by_name(name)
    return group.delete_group(group_id, fac_id)
Exemplo n.º 2
0
def update_group(faculty_name, group_name, new_faculty_name, new_group_name):
    faculty_id = faculty.get_faculty_id_by_name(faculty_name)
    group_id = group.get_group_id_by_name(group_name)
    new_faculty_id = faculty.get_faculty_id_by_name(new_faculty_name)
    return group.update_group(group_id, faculty_id, new_faculty_id,
                              new_group_name)
Exemplo n.º 3
0
def delete_faculty(name):
    fac_id = faculty.get_faculty_id_by_name(name)
    return faculty.delete_faculty(fac_id)
Exemplo n.º 4
0
def create_group(name, faculty_name):
    fac_id = faculty.get_faculty_id_by_name(faculty_name)
    return group.create_group(name, fac_id)
Exemplo n.º 5
0
def update_faculty(name, new_name):
    id = faculty.get_faculty_id_by_name(name)
    return faculty.update_faculty(id, new_name)