Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countries with subtitle not parsing correctly #15

Open
mbrehon opened this issue Mar 26, 2020 · 2 comments
Open

Countries with subtitle not parsing correctly #15

mbrehon opened this issue Mar 26, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mbrehon
Copy link

mbrehon commented Mar 26, 2020

command line: ~/covid19-cli $ ./dist/covid19-cli.sh -l --sort deaths

rough description: Country subtitles(?) are displayed under "cases" column and all remaining values for those countries seem to be shifted one column to the right in display.

output snippets:

| China | 81285 | 3947 | 1235 | 3287 | 74051 | 67 | 6 | 56 |
| Iran | Islamic Republic of | 29406 | 16715 | 2746 | 2234 | 10457 | 2389 | 157 | 350 |
| France | 29155 | 22511 | 3375 | 1696 | 4948 | 3922 | 365 | 447 |

| Andorra | 224 | 220 | 6 | 3 | 1 | 36 | 2 | 2 |
| Macedonia | the former Yugoslav Republic of | 201 | 195 | 1 | 3 | 3 | 24 | 0 | 96 |
| Congo | the Democratic Republic of the | 51 | 48 | 0 | 3 | 0 | 3 | 1 | 0.6 |
| Russia | 840 | 799 | 8 | 3 | 38 | 182 | 0 | 6 |

editing to add:

  • gentoo kernel 4.19 amd64
  • bash 4.4
  • coreutils 8.31

edit(2) to add '-l' to cmd line above

@garrylachman garrylachman added the bug Something isn't working label Mar 26, 2020
@garrylachman garrylachman self-assigned this Mar 26, 2020
@LinuxOnTheDesktop
Copy link

LinuxOnTheDesktop commented Mar 27, 2020

The following - generated by the latest git code (I updated that code just now) - might result from the same problem.

~/git/covid $ covid us
 ✔  Country: us

Cases:		85594	▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▂▃▃▄▅▆█
Deaths:		1300	▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▂▂▂▃▄▅▆█
Recovered:	1868
~/git/covid $ covid "united states"
 ✔  Country: united states

Cases:		13	
Deaths:		0	

Recovered: 0

EDIT: compare also the following.

~ $ /~/git/covid19-cli/covid19-cli/dist/covid19-cli.sh --no-banner -c "new zealand"
 ✔  Country: new zealand

Cases:		null	
Deaths:		null	
Recovered:	null
~ $ /~/git/covid19-cli/covid19-cli/dist/covid19-cli.sh --no-banner -c nz
 ✔  Country: nz

Cases:		514	
Deaths:		1	
Recovered:	56

@mbrehon
Copy link
Author

mbrehon commented Apr 21, 2020

Between latest update to code and newer data sets, it seems the problem is now gone. I suspect the underlying data was changed, but can't be 100% certain it has or that it will remain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants