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

Remove flag attribute from country data #25

Closed hardiksondagar closed 4 years ago

hardiksondagar commented 4 years ago

corona.lmao.ninja API has added flag information in response while calling API for country stats. Previous format:

[ 'India', 468, 72, 9, 2, 24, 435, 0, 0 ]

Updated format:

[
  'India',
  {
    iso2: 'IN',
    iso3: 'IND',
    _id: 356,
    lat: 20,
    long: 77,
    flag: 'https://raw.githubusercontent.com/NovelCOVID/API/master/assets/flags/in.png'
  },
  468,
  72,
  9,
  2,
  24,
  435,
  0,
  0
]
ahmadawais commented 4 years ago

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