|
|
|
@@ -1225,7 +1225,8 @@ func DownloadCloudBrainBoard(ctx *context.Context) { |
|
|
|
} |
|
|
|
models.LoadSpecs4CloudbrainInfo(pageRecords) |
|
|
|
for _, record := range pageRecords { |
|
|
|
|
|
|
|
record = cloudbrainService.UpdateCloudbrainAiCenter(record) |
|
|
|
record.Cloudbrain.AiCenter = repo.GetAiCenterNameByCode(record.Cloudbrain.AiCenter) |
|
|
|
for k, v := range allCloudbrainValues(row, record, ctx) { |
|
|
|
f.SetCellValue(cloudBrain, k, v) |
|
|
|
} |
|
|
|
@@ -1264,7 +1265,7 @@ func allCloudbrainValues(row int, rs *models.CloudbrainInfo, ctx *context.Contex |
|
|
|
getCellName("G", row): rs.TrainJobDuration, getCellName("H", row): repo.GetCloudbrainCardDuration(rs.Cloudbrain), |
|
|
|
getCellName("I", row): getBrainStartTime(rs), |
|
|
|
getCellName("J", row): getBrainEndTime(rs), getCellName("K", row): rs.ComputeResource, getCellName("L", row): getCloudbrainCardType(rs), |
|
|
|
getCellName("M", row): getWorkServerNum(rs), getCellName("N", row): repo.GetCloudbrainAiCenter(rs.Cloudbrain, ctx), |
|
|
|
getCellName("M", row): getWorkServerNum(rs), getCellName("N", row): rs.Cloudbrain.AiCenter, |
|
|
|
getCellName("O", row): getCloudbrainFlavorName(rs), getCellName("P", row): rs.Name, |
|
|
|
getCellName("Q", row): getBrainRepo(rs), getCellName("R", row): rs.JobName, getCellName("S", row): getBrainDeleteTime(rs), |
|
|
|
} |
|
|
|
|