Skip to content

Commit

Permalink
Add abstracts, typo in download url variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvwong committed Oct 15, 2024
1 parent 38788dd commit 198c4d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
"args": [
"download",
"--output",
"example-data/2022-06-22.json",
"2022-06-22",
"2022-06-22"
],
"console": "integratedTerminal"
"example-data/2024-08-01_2024-10-011.json",
"2024-08-01",
"2024-10-11"
]
},
{
"type": "node",
Expand All @@ -60,11 +59,12 @@
"args": [
"search",
"--input",
"example-data/2022-06-22.json",
"breast cancer",
"--pretty"
],
"console": "integratedTerminal"
"example-data/2024-08-01_2024-10-011.json",
"--output",
"example-data/2024-08-01_2024-10-011-alzheimer.json",
"alzheimer"
// "--pretty"
]
},
{
"type": "node",
Expand All @@ -83,7 +83,7 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/src/dashboard/app.js",
"program": "${workspaceFolder}/src/dashboard/app.js",
"console": "integratedTerminal"
}
]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.tabSize": 2,
"editor.insertSpaces": true
Expand Down
1 change: 1 addition & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ async function formatData (dataArray) {
try {
const formattedData = dataArray.map(article => ({
paperId: article.doi,
abstract: article.abstract,
doi: article.doi,
title: article.title,
journal: article.server,
Expand Down
2 changes: 1 addition & 1 deletion src/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function getRecent (server, N, opts) { // eslint-disable-line no-unused-va
async function getDateRange (server, start, end, offset = 0, opts) {
validateDate(start);
validateDate(end);
const url = `${CONTENT_DETAIL_BASE_URL}/${server}/${start}/${end}/${offset}/json`;
const url = `${CONTENT_DETAIL_BASE_URL}${server}/${start}/${end}/${offset}/json`;
return getNormalized(url, opts);
};

Expand Down

0 comments on commit 198c4d7

Please sign in to comment.