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})
def delete_lesson(name): errcode = LessonModel.DeleteLessonByname(name) return utils.jsonresp(jsonobj={'errcode': errcode})