Compare commits
2 Commits
5a37ffb1cf
...
fcdfae85e3
Author | SHA1 | Date | |
---|---|---|---|
|
fcdfae85e3 | ||
|
37a5d0ac43 |
3
data.go
3
data.go
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user