forked from covid19india/api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsheet-to-json_generic.js
More file actions
63 lines (60 loc) · 1.36 KB
/
sheet-to-json_generic.js
File metadata and controls
63 lines (60 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const { task } = require("./lib");
const c = require("./lib/constants");
(async function main() {
console.log("Running task on start...");
await task({
sheet: c.SHEET,
tabs: {
raw_data: c.SHEET_RAW_DATA
},
file: c.FILE_RAW_DATA
});
await task({
sheet: c.SHEET,
tabs: {
tested_data: c.SHEET_DATE_WISE_DELTA
},
file: c.FILE_STATEWISE_TESTED_DATA
});
await task({
sheet: c.SHEET,
tabs: {
travel_history: c.SHEET_TRAVEL_HISTORY
},
file: c.FILE_TRAVEL_HISTORY
});
await task({
sheet: c.SHEET,
tabs: {
factoids: c.SHEET_NAME_FACTOIDS, faq: c.SHEET_FAQ
},
file: c.FILE_WEBSITE_DATA
});
await task({
sheet: c.SHEET,
tabs: {
states_tested_data: c.SHEET_StateWise_Tested_Numbers_Data
},
file: c.FILE_STATEWISE_TESTED_DATA
});
await task({
sheet: c.SHEET,
tabs: { states_daily: c.SHEET_DATE_WISE_DELTA },
file: c.FILE_DATE_WISE_DELTA
});
await task({
sheet: c.SHEET,
tabs: {
statewise: c.SHEET_STATEWISE_TAB,
cases_time_series: c.SHEET_CASES_TIME_SERIES_TAB,
tested: c.SHEET_Tested_Numbers_ICMR_Data,
},
file: c.FILE_DATA
});
await task({
sheet: c.SHEET_RESOURCES,
tabs: { resources: c.SHEET_RESOURCES_SHEET},
file: c.FILE_RESOURCES_ESSENTIALS
});
console.log("End of sheet-to-json_generic");
})();