From e3c1af4f5d433674ac49cf134214464d688f6d15 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Mon, 22 Jul 2024 07:16:25 -0600 Subject: [PATCH] update title --- cmd/http/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/http/router.go b/cmd/http/router.go index 1458760..5ddabd3 100644 --- a/cmd/http/router.go +++ b/cmd/http/router.go @@ -172,9 +172,9 @@ func (router Router) APITrends(w http.ResponseWriter, r *http.Request) { } } - pie("Median Spending", `Withdrawal:[0-9]*`, 50) - pie("Median Spending (detailed)", `Withdrawal:[0-9]*:[^:]*`, 25) - pie("Median Spending (MORE detailed)", `Withdrawal:[0-9]*:[^:]*:[^:]*`, 10) + pie(fmt.Sprintf("Median Monthly Spending Since %dmo ago", int(recent/time.Hour/24/30)), `Withdrawal:[0-9]*`, 50) + pie("Median Monthly Spending (detailed)", `Withdrawal:[0-9]*:[^:]*`, 25) + pie("Median Monthly Spending (MORE detailed)", `Withdrawal:[0-9]*:[^:]*:[^:]*`, 10) } func (router Router) APIAmend(w http.ResponseWriter, r *http.Request) {