Skip to content
Snippets Groups Projects
Commit e8d0815b authored by Quentin Bramas's avatar Quentin Bramas
Browse files

re-download db

parent 857e3d05
Branches
Tags
No related merge requests found
Pipeline #95373 canceled with stages
in 3 minutes and 6 seconds
4
\ No newline at end of file
5
\ No newline at end of file
......@@ -46,7 +46,7 @@ export async function init() {
file.on("finish", () => {
file.close();
console.log("Download Completed");
console.log("running tar", ['-xzvf', dbPath+'.tar.gz']);
console.log("running tar", ['-xzvf', dbPath+'.tar.gz'], {cwd: dataPath});
spawnSync('tar', ['-xzvf', dbPath+'.tar.gz']);
console.log("Done");
resolve(true);
......
......@@ -225,7 +225,7 @@ function venue_gt(v1:Row, v2:Row)
if(v2.rankABC == 'A*') return 0;
return v1.rankABC < v2.rankABC;
}
function find_best_paper(paper:Paper) {
function find_best_rank(paper:Paper) {
/*let best_venue = null;
for(let category in predefinedCommunities) {
let venue = find_paper_venue(paper, category);
......@@ -245,7 +245,7 @@ function find_best_paper(paper:Paper) {
year:undefined
};
}
const venue = {...predefinedCommunityRanks.allJournals[paper.journal_id][paper.year]};
const venue = {...predefinedCommunityRanks.allJournals[paper.journal_id].years[paper.year]};
return {
...predefinedCommunityRanks.allJournals[paper.journal_id],
...venue,
......@@ -343,7 +343,7 @@ export default {
const paperWithVenue = papers.map(p => {
return {
...p,
venue: find_best_paper(p)
venue: find_best_rank(p)
}
}).filter(paper => paper.venue && !archives.includes(paper.venue.name))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment