diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-13 01:25:30 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-13 01:25:30 +0200 |
commit | 7c59720c24a0236dedf71fba41d11314c743481b (patch) | |
tree | 8caf5663ded4ee5ebc66166311fbfcc0430a355e /skate | |
parent | eda3ed4ff659104106427efba742b8b21c8583d0 (diff) | |
download | refcat-7c59720c24a0236dedf71fba41d11314c743481b.tar.gz refcat-7c59720c24a0236dedf71fba41d11314c743481b.zip |
reduce: add todo
Diffstat (limited to 'skate')
-rw-r--r-- | skate/reduce.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/skate/reduce.go b/skate/reduce.go index 6c86b92..7d789f5 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -148,7 +148,9 @@ func ZippyExactReleases(olr, releases io.Reader, matchResult MatchResult, w io.W // fixed match result. func ZippyExactWiki(releases, wiki io.Reader, mr MatchResult, w io.Writer) error { var ( - enc = json.NewEncoder(xio.NewSingleWriter(w)) + enc = json.NewEncoder(xio.NewSingleWriter(w)) + // TODO: Use slug version of title. Also consider a generic schema + // (e.g. one that would look similar for OL, WB, WP, ...) b32enc = base32.StdEncoding.WithPadding(base32.NoPadding) keyer = makeKeyFunc("\t", 1) grouper = func(g *zipkey.Group) error { |