Skip to content

Commit 198c4d7

Browse files
committed
Add abstracts, typo in download url variable.
1 parent 38788dd commit 198c4d7

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

.vscode/launch.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@
4343
"args": [
4444
"download",
4545
"--output",
46-
"example-data/2022-06-22.json",
47-
"2022-06-22",
48-
"2022-06-22"
49-
],
50-
"console": "integratedTerminal"
46+
"example-data/2024-08-01_2024-10-011.json",
47+
"2024-08-01",
48+
"2024-10-11"
49+
]
5150
},
5251
{
5352
"type": "node",
@@ -60,11 +59,12 @@
6059
"args": [
6160
"search",
6261
"--input",
63-
"example-data/2022-06-22.json",
64-
"breast cancer",
65-
"--pretty"
66-
],
67-
"console": "integratedTerminal"
62+
"example-data/2024-08-01_2024-10-011.json",
63+
"--output",
64+
"example-data/2024-08-01_2024-10-011-alzheimer.json",
65+
"alzheimer"
66+
// "--pretty"
67+
]
6868
},
6969
{
7070
"type": "node",
@@ -83,7 +83,7 @@
8383
"skipFiles": [
8484
"<node_internals>/**"
8585
],
86-
"program": "${workspaceFolder}/src/dashboard/app.js",
86+
"program": "${workspaceFolder}/src/dashboard/app.js",
8787
"console": "integratedTerminal"
8888
}
8989
]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": true
3+
"source.fixAll.eslint": "explicit"
44
},
55
"editor.tabSize": 2,
66
"editor.insertSpaces": true

src/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ async function formatData (dataArray) {
106106
try {
107107
const formattedData = dataArray.map(article => ({
108108
paperId: article.doi,
109+
abstract: article.abstract,
109110
doi: article.doi,
110111
title: article.title,
111112
journal: article.server,

src/download.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function getRecent (server, N, opts) { // eslint-disable-line no-unused-va
131131
async function getDateRange (server, start, end, offset = 0, opts) {
132132
validateDate(start);
133133
validateDate(end);
134-
const url = `${CONTENT_DETAIL_BASE_URL}/${server}/${start}/${end}/${offset}/json`;
134+
const url = `${CONTENT_DETAIL_BASE_URL}${server}/${start}/${end}/${offset}/json`;
135135
return getNormalized(url, opts);
136136
};
137137

0 commit comments

Comments
 (0)