debug: add pattern-measure count to init step details
This commit is contained in:
@@ -327,7 +327,12 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mitStep = InitStep{Name: "Massnahmen erstellt", Status: "done", Count: created}
|
patternMeasureCount := 0
|
||||||
|
for _, mids := range hazardPatternMeasures {
|
||||||
|
patternMeasureCount += len(mids)
|
||||||
|
}
|
||||||
|
mitStep = InitStep{Name: "Massnahmen erstellt", Status: "done", Count: created,
|
||||||
|
Details: fmt.Sprintf("%d pattern-spezifisch fuer %d Hazards", patternMeasureCount, len(hazardPatternMeasures))}
|
||||||
} else if len(existingMits) > 0 {
|
} else if len(existingMits) > 0 {
|
||||||
mitStep.Details = "Bereits vorhanden"
|
mitStep.Details = "Bereits vorhanden"
|
||||||
mitStep.Count = len(existingMits)
|
mitStep.Count = len(existingMits)
|
||||||
|
|||||||
Reference in New Issue
Block a user