Skip to content

Commit

Permalink
Require both page and page_props to be present in dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
brawer committed May 10, 2024
1 parent af624d9 commit d688975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/qrank-builder/wikisites.go
Expand Up @@ -70,7 +70,7 @@ func ReadWikiSites(dumps string) (*map[string]WikiSite, error) {
continue
}

for _, f := range []string{"page_props.sql.gz"} {
for _, f := range []string{"page.sql.gz", "page_props.sql.gz"} {
latestFile := fmt.Sprintf("%s-latest-%s", site.Key, f)
latestPath := filepath.Join(dumps, site.Key, "latest", latestFile)
if latest, err := filepath.EvalSymlinks(latestPath); err == nil {
Expand Down

0 comments on commit d688975

Please sign in to comment.