From 84523661e2579aa36084bfd66836f79aa3320d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Fri, 22 Dec 2023 09:22:26 -0800 Subject: [PATCH] scores: Allow 10000 rows --- server/history.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/history.go b/server/history.go index 09478f4..9f8b385 100644 --- a/server/history.go +++ b/server/history.go @@ -49,10 +49,10 @@ func (srv *Server) getHistory(ctx context.Context, c echo.Context, server ntpdb. if limitParam, err := strconv.Atoi(c.QueryParam("limit")); err == nil { limit = limitParam } else { - limit = 50 + limit = 100 } - if limit > 4000 { - limit = 4000 + if limit > 10000 { + limit = 10000 } since, _ := strconv.ParseInt(c.QueryParam("since"), 10, 64) // defaults to 0 so don't care if it parses