aboutsummaryrefslogtreecommitdiffstats
path: root/skate
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-13 01:25:30 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-13 01:25:30 +0200
commit7c59720c24a0236dedf71fba41d11314c743481b (patch)
tree8caf5663ded4ee5ebc66166311fbfcc0430a355e /skate
parenteda3ed4ff659104106427efba742b8b21c8583d0 (diff)
downloadrefcat-7c59720c24a0236dedf71fba41d11314c743481b.tar.gz
refcat-7c59720c24a0236dedf71fba41d11314c743481b.zip
reduce: add todo
Diffstat (limited to 'skate')
-rw-r--r--skate/reduce.go4
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 {