Compare commits

...

2 Commits

Author SHA1 Message Date
Gitea
fcdfae85e3 mark at incoming req 2023-12-27 03:40:24 +00:00
Gitea
37a5d0ac43 ignore resolved issues 2023-12-27 03:39:49 +00:00
2 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,8 @@ func (d *Data) update() {
// Filter issues with old target versions out // Filter issues with old target versions out
var issues = Issues{} var issues = Issues{}
for _, issue := range iss.Issues { for _, issue := range iss.Issues {
if strings.Compare(d.minimumVersion, issue.TargetVersion.Name) < 0 { if issue.Resolution.Name == "open" &&
strings.Compare(d.minimumVersion, issue.TargetVersion.Name) < 0 {
issues = append(issues, issue) issues = append(issues, issue)
} }
} }

View File

@ -65,9 +65,11 @@ func main() {
}() }()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
log.Println("got request for table")
data.printTemplate(w, "table.tmpl") data.printTemplate(w, "table.tmpl")
}) })
http.HandleFunc("/list", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/list", func(w http.ResponseWriter, r *http.Request) {
log.Println("got request for list")
data.printTemplate(w, "list.tmpl") data.printTemplate(w, "list.tmpl")
}) })
http.HandleFunc("/json", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/json", func(w http.ResponseWriter, r *http.Request) {