diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-14 23:19:25 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-14 23:19:25 +0200 |
commit | 608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5 (patch) | |
tree | 7d9eec29eff7b917a33fb8ab90efcc3f6a2f5da7 /cmd/sklad/main.go | |
parent | 8d9b6f75d0b75e9495b3a963f02bd26acd989b26 (diff) | |
download | sklad-608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5.tar.gz sklad-608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5.tar.xz sklad-608ba10eecb1f5c02eb41b288d2af5ce2de3f4f5.zip |
sklad: show the number of members of each series
Diffstat (limited to 'cmd/sklad/main.go')
-rw-r--r-- | cmd/sklad/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
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, |