| @@ -294,6 +294,9 @@ func NotebookShow(ctx *context.Context) { | |||||
| } else { //deleted record | } else { //deleted record | ||||
| } | } | ||||
| if task.FlavorCode == "" { | |||||
| task.FlavorCode = result.Flavor | |||||
| } | |||||
| } | } | ||||
| datasetDownload := make([]models.DatasetDownload, 0) | datasetDownload := make([]models.DatasetDownload, 0) | ||||
| @@ -528,8 +531,8 @@ func NotebookManage(ctx *context.Context) { | |||||
| Description: task.Description, | Description: task.Description, | ||||
| CreatedUnix: createTime, | CreatedUnix: createTime, | ||||
| UpdatedUnix: createTime, | UpdatedUnix: createTime, | ||||
| FlavorName: task.FlavorName, | |||||
| FlavorCode: task.FlavorCode, | FlavorCode: task.FlavorCode, | ||||
| FlavorName: task.FlavorName, | |||||
| } | } | ||||
| err = models.RestartCloudbrain(task, newTask) | err = models.RestartCloudbrain(task, newTask) | ||||