Beautify alert (#746)

* update dep

* to make easy edit alert data manually

* fix alert data bug
This commit is contained in:
Tomoya Amachi
2018-12-05 12:30:04 +09:00
committed by Kota Kanbe
parent b3260588c6
commit 9147ec148d
9 changed files with 4480 additions and 4046 deletions

View File

@@ -111,17 +111,7 @@ type CweDictEntry struct {
// GetAlertsByCveID return alerts fetched by cveID
func GetAlertsByCveID(cveID string, lang string) (alerts []alert.Alert) {
if lang == "ja" {
if dict, ok := alert.AlertDictJP[cveID]; ok {
return dict
}
return alerts
}
// default use english
if dict, ok := alert.AlertDictUS[cveID]; ok {
return dict
}
alerts = alert.GenerateAlertDict(cveID, lang)
return alerts
}