From 425857af84f2e9f54f4ac1e7194cbd62d1821e61 Mon Sep 17 00:00:00 2001 From: Seednode Date: Sat, 9 Sep 2023 00:25:04 -0500 Subject: [PATCH] Fixed pagination for stats, was using query parameter instead of httprouter parameter --- cmd/root.go | 2 +- cmd/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a60e8db..6e0e24b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ var ( ) const ( - Version string = "0.58.0" + Version string = "0.58.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 1d77756..0e990b3 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -585,7 +585,7 @@ func serveStats(args []string, stats *ServeStats) httprouter.Handle { startTime := time.Now() - page, err := strconv.Atoi(r.URL.Query().Get("page")) + page, err := strconv.Atoi(p.ByName("page")) if err != nil || page == 0 { page = -1 }