From 5962c0eb9d3f6b870af65873322dadfcc4eb50e8 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 9 Jul 2021 18:17:21 +0200 Subject: wiki: flip doi and page title column --- skate/cmd/skate-wikipedia-doi/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'skate') diff --git a/skate/cmd/skate-wikipedia-doi/main.go b/skate/cmd/skate-wikipedia-doi/main.go index d9ee135..db40a20 100644 --- a/skate/cmd/skate-wikipedia-doi/main.go +++ b/skate/cmd/skate-wikipedia-doi/main.go @@ -27,11 +27,11 @@ func main() { if err := json.Unmarshal(p, &w); err != nil { return nil, err } - idl := w.ParseIDList() - if idl.DOI == "" { + ids := w.ParseIDList() + if ids.DOI == "" { return nil, nil } - s := fmt.Sprintf("%s\t%s\t%s", strings.TrimSpace(w.PageTitle), idl.DOI, string(p)) + s := fmt.Sprintf("%s\t%s\t%s", ids.DOI, strings.TrimSpace(w.PageTitle), string(p)) return []byte(s), nil }) -- cgit v1.2.3