Fixed pagination for stats, was using query parameter instead of httprouter parameter
This commit is contained in:
parent
d2d87e010d
commit
425857af84
|
@ -17,7 +17,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version string = "0.58.0"
|
Version string = "0.58.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -585,7 +585,7 @@ func serveStats(args []string, stats *ServeStats) httprouter.Handle {
|
||||||
|
|
||||||
startTime := time.Now()
|
startTime := time.Now()
|
||||||
|
|
||||||
page, err := strconv.Atoi(r.URL.Query().Get("page"))
|
page, err := strconv.Atoi(p.ByName("page"))
|
||||||
if err != nil || page == 0 {
|
if err != nil || page == 0 {
|
||||||
page = -1
|
page = -1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue