Skip to content

Commit

Permalink
Temporarily restrict to just one week of pageviews
Browse files Browse the repository at this point in the history
  • Loading branch information
brawer committed May 16, 2024
1 parent 11b0f13 commit 66fb448
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmd/qrank-builder/itemsignals.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ func buildItemSignals(ctx context.Context, pageviews []string, sites *map[string
scannerNames := make([]string, 0, len(pageviews)+1)
scanners = append(scanners, NewPageSignalsScanner(sites, s3))
scannerNames = append(scannerNames, "page_signals")
for _, pv := range pageviews {

for i, pv := range pageviews {
// Temporarily restrict to the very last pageiews file.
// TODO: This is just hack to investigate a bug. Remove it.
// https://github.com/brawer/wikidata-qrank/issues/40
if i != len(pageviews)-1 {
continue
}
reader, err := NewS3Reader(ctx, "qrank", pv, s3)
if err != nil {
return time.Time{}, err
Expand Down

0 comments on commit 66fb448

Please sign in to comment.