From 0d6b31ed3121f04215811b66047398b16cc64d0d Mon Sep 17 00:00:00 2001 From: Rickard Natt och Dag Date: Tue, 9 Jan 2024 18:17:44 +0100 Subject: [PATCH] feat: display stats this year with month names --- components/graphs.templ | 2 +- components/graphs_templ.go | 2 +- db/queries.sql | 2 +- handlers/stats.go | 2 +- types/stats.go | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/graphs.templ b/components/graphs.templ index 6114d61..66cddd4 100644 --- a/components/graphs.templ +++ b/components/graphs.templ @@ -38,7 +38,7 @@ templ Graph(data []types.Bar, title string) { x={ strconv.FormatFloat(bar.LabelX, 'f', 2, 64) } y={ strconv.FormatFloat(bar.LabelY, 'f', 2, 64) } > - { strconv.Itoa(bar.Label) } + { bar.Label }