|
@@ -58,9 +58,9 @@ func writeUserMetricsExcel(row int, xlsx *excelize.File, sheetName string, userM |
|
|
tmp = tmp + 1 |
|
|
tmp = tmp + 1 |
|
|
t := userMetrics.ActivateIndex * 100 |
|
|
t := userMetrics.ActivateIndex * 100 |
|
|
value := "-" |
|
|
value := "-" |
|
|
if t < 100 { |
|
|
|
|
|
|
|
|
if t < 100 && t > 0 { |
|
|
value = fmt.Sprintf("%.2f", t) + "%" |
|
|
value = fmt.Sprintf("%.2f", t) + "%" |
|
|
} else { |
|
|
|
|
|
|
|
|
} else if t >= 100 { |
|
|
value = "100%" |
|
|
value = "100%" |
|
|
} |
|
|
} |
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, value) |
|
|
xlsx.SetCellValue(sheetName, getColumn(tmp)+rows, value) |
|
|