Skip to content

Commit 9c99ebe

Browse files
committed
fixed active column, removed flag emojis
1 parent 48cf64e commit 9c99ebe

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/byCountry.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ exports.getCountryTable = async (country) => {
7474
'1 Day 🔺',
7575
'1 Week 🔺',
7676
// 'RoG',
77-
'🏳',
77+
// '🏳',
7878
];
7979
const table = new Table({
8080
head,
8181
chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
8282
, 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
8383
, 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
84-
, 'right': ' ║' , 'right-mid': '╢' , 'middle': '│' }
84+
, 'right': '║' , 'right-mid': '╢' , 'middle': '│' }
8585
});
8686
const result = await axios('https://coronavirus-tracker-api.herokuapp.com/all');
8787
const { latest, confirmed, deaths, recovered } = result.data;
@@ -100,7 +100,7 @@ exports.getCountryTable = async (country) => {
100100
getOneDayChange(totalStats),
101101
getOneWeekChange(totalStats),
102102
// '',
103-
getEmoji(countryData[0].countryCode),
103+
// getEmoji(countryData[0].countryCode),
104104
]
105105
})
106106
if (countryData.length > 1) {
@@ -112,13 +112,13 @@ exports.getCountryTable = async (country) => {
112112
getConfirmed(cd.confirmed),
113113
getRecovered(cd.recovered),
114114
getDeaths(cd.deaths),
115-
getActive(cd.confirmed, cd.recovered, cd.deaths),
115+
getActive(cd.active),
116116
getMortalityPer(cd.mortalityPer),
117117
getRecoveredPer(cd.recoveredPer),
118118
getOneDayChange(cd),
119119
getOneWeekChange(cd),
120120
// getRateOfGrowth(cd),
121-
getEmoji(cd.countryCode),
121+
// getEmoji(cd.countryCode),
122122
]
123123
table.push({ [rank++]: values })
124124
});

lib/corona.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ exports.getCompleteTable = async () => {
9191
'1 Day 🔺',
9292
'1 Week 🔺',
9393
// 'RoG',
94-
'🏳',
94+
// '🏳',
9595
];
9696
const table = new Table({
9797
head,
9898
chars: { 'top': '═' , 'top-mid': '╤' , 'top-left': '╔' , 'top-right': '╗'
9999
, 'bottom': '═' , 'bottom-mid': '╧' , 'bottom-left': '╚' , 'bottom-right': '╝'
100100
, 'left': '║' , 'left-mid': '╟' , 'mid': '─' , 'mid-mid': '┼'
101-
, 'right': ' ║' , 'right-mid': '╢' , 'middle': '│' }
101+
, 'right': '║' , 'right-mid': '╢' , 'middle': '│' }
102102
});
103103
const result = await axios('https://coronavirus-tracker-api.herokuapp.com/all');
104104
const { latest, confirmed, deaths, recovered } = result.data;
@@ -116,7 +116,7 @@ exports.getCompleteTable = async () => {
116116
getOneDayChange(worldStats),
117117
getOneWeekChange(worldStats),
118118
// '',
119-
'🌎'
119+
// '🌎'
120120
]
121121
})
122122
let rank = 1;
@@ -127,13 +127,13 @@ exports.getCompleteTable = async () => {
127127
getConfirmed(cd.confirmed),
128128
getRecovered(cd.recovered),
129129
getDeaths(cd.deaths),
130-
getActive(cd.confirmed, cd.recovered, cd.deaths),
130+
getActive(cd.active),
131131
getMortalityPer(cd.mortalityPer),
132132
getRecoveredPer(cd.recoveredPer),
133133
getOneDayChange(cd),
134134
getOneWeekChange(cd),
135135
// getRateOfGrowth(cd),
136-
getEmoji(cd.countryCode),
136+
// getEmoji(cd.countryCode),
137137
]
138138
table.push({ [rank++]: values })
139139
});

0 commit comments

Comments
 (0)