From 608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 14 Apr 2019 23:19:25 +0200 Subject: sklad: show the number of members of each series --- cmd/sklad/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/sklad/main.go') diff --git a/cmd/sklad/main.go b/cmd/sklad/main.go index 32dd68b..fd675b1 100644 --- a/cmd/sklad/main.go +++ b/cmd/sklad/main.go @@ -129,9 +129,9 @@ func handleSeries(w http.ResponseWriter, r *http.Request) { return } - allSeries := map[string]string{} + allSeries := map[string]*Series{} for _, s := range indexSeries { - allSeries[s.Prefix] = s.Description + allSeries[s.Prefix] = s } prefix := r.FormValue("prefix") @@ -145,7 +145,7 @@ func handleSeries(w http.ResponseWriter, r *http.Request) { params := struct { Prefix string Description string - AllSeries map[string]string + AllSeries map[string]*Series }{ Prefix: prefix, Description: description, -- cgit v1.2.3