Example #1
0
def delete_lessons(names):
    errcode = 0
    #nameList = names.split(',')
    for name in names.split(','):
        ret = LessonModel.DeleteLessonByname(name)
        if ret != 0:
            errcode = 1

    return utils.jsonresp(jsonobj={'errcode': errcode})
Example #2
0
def delete_lesson(name):
    errcode = LessonModel.DeleteLessonByname(name)
    return utils.jsonresp(jsonobj={'errcode': errcode})