diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-29 14:27:07 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-29 14:27:07 +0100 |
| commit | ab46c9007b862eb512fe66cc47a325a7a374e20c (patch) | |
| tree | 0ca936eaf96b5c7ea58d8838b6e2486fd5e4f3a4 | |
| parent | 5309b381e64f59b8f57014ad41e55d7f87ca0628 (diff) | |
load verified cites
| -rw-r--r-- | client/index.js | 2 | ||||
| -rw-r--r-- | scraper/s2-final-report.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js index dd60c0ed..5c8bc880 100644 --- a/client/index.js +++ b/client/index.js @@ -22,7 +22,7 @@ function appendReactApplet(el, payload) { function fetchDataset(payload) { if (payload.command === 'face_analysis') return new Promise(resolve => resolve()) if (payload.dataset === 'info') return new Promise(resolve => resolve()) - const url = "https://megapixels.nyc3.digitaloceanspaces.com/v1/citations/" + payload.dataset + ".json" + const url = "https://megapixels.nyc3.digitaloceanspaces.com/v1/citations/verified/" + payload.dataset + ".json" return fetch(url, { mode: 'cors' }).then(r => r.json()) } diff --git a/scraper/s2-final-report.py b/scraper/s2-final-report.py index 1012a2e5..c9ec6423 100644 --- a/scraper/s2-final-report.py +++ b/scraper/s2-final-report.py @@ -41,6 +41,11 @@ def s2_final_report(): DIR_PUBLIC_CITATIONS + '/', "s3://megapixels/v1/citations/", ]) + subprocess.call([ + "s3cmd", "put", "-P", "--recursive", + DIR_VERIFIED_CITATIONS + '/', + "s3://megapixels/v1/citations/verified/", + ]) def process_paper(row, verified_lookup): aggregate_citations = {} |
