From 6b40f91e6b4deba9d2fc1c17f6dedb26c74f9b20 Mon Sep 17 00:00:00 2001 From: segatomo Date: Thu, 4 Jun 2020 16:36:39 +0900 Subject: [PATCH] fix list (#158) --- models/models.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/models.go b/models/models.go index 80184c2b..e4f958bd 100644 --- a/models/models.go +++ b/models/models.go @@ -64,7 +64,7 @@ func (f FeedMeta) color(str string) string { } func (f FeedMeta) source() string { - if strings.Contains(f.URL, "nvdcve-1.0-") { + if strings.Contains(f.URL, "nvdcve-1.1-") { return nvdjson } else if strings.Contains(f.URL, "jvndb") { return jvn @@ -89,7 +89,7 @@ func (f FeedMeta) Year() (year string, xml bool, err error) { switch f.source() { case nvdjson: return strings.TrimSuffix( - strings.Split(f.URL, "nvdcve-1.0-")[1], ".json.gz"), false, nil + strings.Split(f.URL, "nvdcve-1.1-")[1], ".json.gz"), false, nil case jvn: if strings.HasSuffix(f.URL, "jvndb.rdf") { return "modified", true, nil