Skip to content

Commit

Permalink
Revert "Temporarily restrict set of sites to zh.wikipedia.org and zh.…
Browse files Browse the repository at this point in the history
…wikiquote.org"

This reverts commit 6abd161.

It was a one-off  experiment, trying to find the cause of a bug.
#40
  • Loading branch information
brawer committed May 17, 2024
1 parent 6abd161 commit 44b1f72
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/qrank-builder/itemsignals.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,6 @@ 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 44b1f72

Please sign in to comment.