ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). https://x.com/MrAhmadAwais
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

fix for table numbers not lining up correctly when displaying all countries #30

Closed mikeg1440 closed 4 years ago

mikeg1440 commented 4 years ago

Fixes #27

Description

By changing the all variable in the getAll.js file to not include the countryInfo property from the api response data we return the correct number of fields which fixes the issue for the getAll.js file so that all the data lines up with the correct headers in the table when displaying all the countries.

fluffynuts commented 4 years ago

Note that this problem also affects country view, hence my PR #31.

ahmadawais commented 4 years ago

Thank you but I had already fixed it via filter across the files.

Update the CLI. It's been fixed already.

Go ahead and run this:

npm i -g corona-cli