Skip to content

Commit

Permalink
uncomment part of code
Browse files Browse the repository at this point in the history
  • Loading branch information
leilafedd committed Jul 28, 2022
1 parent 362ea8a commit a1ed3b7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/cache-population/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Zlib from 'zlib';

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX First Phase XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Log.info( '---------------- Phase 1 (Wikidata) ----------------' );
Log.info( '---------------- Phase 1 (Wikidata) ----------------' );

// collect query modules
queries.length = 0;
Expand Down Expand Up @@ -99,7 +99,7 @@ import Zlib from 'zlib';

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Second Phase XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Log.info( '---------------- Phase 2 (Wikipedia download) ----------------' );
Log.info( '---------------- Phase 2 (Wikipedia download) ----------------' );

// return list of categories together with their corresponding target
let catToTarget = getCatsTarget();
Expand All @@ -108,10 +108,9 @@ import Zlib from 'zlib';
let grouped = await groupByLang(catToTarget.exclude , catToTarget.catToTarget);

//download wikipedia dump tables for all languages
await downloadAll(grouped.langList.both);*/
await downloadAll(grouped.langList.both);


/*
Log.info( '---------------- Phase 2 (Wikipedia cache population) ----------------' );

let group = JSON.parse(Fs.readFileSync(CacheConfig.catGroupedBylang));
Expand All @@ -121,11 +120,11 @@ import Zlib from 'zlib';
delete grouped.en;
let newgrouped = Object.assign({en: temp}, grouped);*/

//await populateCaches(group);
await populateCaches(group);

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Third Phase XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Log.info( '---------------- Phase 3 (Wikidata) ----------------' );
Log.info( '---------------- Phase 3 (Wikidata) ----------------' );

// collect query modules
queries.length = 0;
Expand Down Expand Up @@ -167,7 +166,7 @@ import Zlib from 'zlib';

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Fourth Phase XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

/* Log.info( '---------------- Phase 4 (Wikidata) ----------------' );
Log.info( '---------------- Phase 4 (Wikidata) ----------------' );

// collect query modules
queries.length = 0;
Expand Down

0 comments on commit a1ed3b7

Please sign in to comment.