Skip to content

Commit

Permalink
Temporarily restrict set of sites to zh.wikipedia.org and zh.wikiquot…
Browse files Browse the repository at this point in the history
…e.org
  • Loading branch information
brawer committed May 17, 2024
1 parent 66fb448 commit 6abd161
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/qrank-builder/itemsignals.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ func buildItemSignals(ctx context.Context, pageviews []string, sites *map[string
}
defer compressor.Close()

// Temporarily restrict the set of sites to zh.wikipedia.org
// and zh.wikiquote.org.
// TODO: This is just hack to investigate a bug. Remove it.
// https://github.com/brawer/wikidata-qrank/issues/40
for key, _ := range *sites {
if key != "zhwiki" && key != "zhwikiquote" {
delete(*sites, key)
}
}

writer := NewItemSignalsWriter(compressor)
scanners := make([]LineScanner, 0, len(pageviews)+1)
scannerNames := make([]string, 0, len(pageviews)+1)
Expand Down

0 comments on commit 6abd161

Please sign in to comment.