diff options
| author | adamhrv <adam@ahprojects.com> | 2019-03-30 12:47:47 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-03-30 12:47:47 +0100 |
| commit | 18cc1ea5d0ad1646513d7e4aa77bbe3871580ff1 (patch) | |
| tree | fef1f6af5fadcc846b8e7f5874a50e75b1c50828 | |
| parent | 21fd4284ac0f14ec860ccda1032ef380ccfa7b2f (diff) | |
| parent | ab46c9007b862eb512fe66cc47a325a7a374e20c (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
| -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 = {} |
