Skip to content

Commit

Permalink
filtering more big numbers :(
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleeeeee committed Oct 18, 2020
1 parent 1a4f796 commit ae73873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ function getWorld(){
var worldData = JSON.parse(req.responseText);
//{"cases":468012,"deaths":21180,"recovered":113809,"updated":1585179172282}
worldStats.Cases = filterNumber(worldData.cases);
worldStats.Deaths = worldData.deaths + "";
worldStats.Recovered = worldData.recovered + "";
worldStats.Deaths = filterNumber(worldData.deaths);
worldStats.Recovered = filterNumber(worldData.recovered);
console.log('sending world');
console.log(JSON.stringify(worldStats));
MessageQueue.sendAppMessage(worldStats, onSuccess, onFailure);
Expand Down Expand Up @@ -113,8 +113,8 @@ function getCountry(){
var countryData = {
'Location': country,
'Cases': filterNumber(data.cases),
'Deaths': data.deaths + "",
'Recovered': data.recovered + "",
'Deaths': filterNumber(data.deaths),
'Recovered': filterNumber(data.recovered),
'Scope': 1
};
console.log('sending country');
Expand Down

0 comments on commit ae73873

Please sign in to comment.