Code Monkey home page Code Monkey logo

Comments (9)

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

kindly reminder the bug also today

from covid-19.

Lucie20 avatar Lucie20 commented on August 29, 2024

we are working on the correction, thank you for letting us know

from covid-19.

katacek avatar katacek commented on August 29, 2024

fix #59 including all cities

from covid-19.

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

thanks all , but FYI the deceased key in each city undefined right know

from covid-19.

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

EX.
now :
مكة المكرمة: {
infected: "7410",
active: " 5537",
recovered: "1778"
}
but it should like that :
مكة المكرمة: {
infected: "7410",
active: " 5537",
recovered: "1778",
deceased: "95"
}

from covid-19.

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

I think you need to change this line in main.js
citiesArray.forEach(x =>
{
data[x]['infected'] = $(strong:contains(${x})).closest('p').find("span[style='color:#e60000']").eq(0).text().replace(',','');
data[x]['active'] = $(strong:contains(${x})).closest('p').find("span[style='color:#e69800']").eq(0).text().replace(',','');
data[x]['recovered'] = $(strong:contains(${x})).closest('p').find("span[style='color:#70a800']").eq(0).text().replace(',','');
})

from covid-19.

katacek avatar katacek commented on August 29, 2024

Thanks, you are right. It is because I cannot see the deceased key for each city on the website (https://covid19.moh.gov.sa/en/). Before, we took the data from different endpoint (including deceased key) but those data were not actual.
If I am wrong and the deceased key can be found on the website, it can be fixed easily.

from covid-19.

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

yes you are right, but actual the deceased you can find it if you click on the name of city

**95**

Screen Shot 1441-09-14 at 11 05 52 PM

from covid-19.

FahadAlMutairi5 avatar FahadAlMutairi5 commented on August 29, 2024

after you select the name of city you can find the deceased of this city in الوفيات section

from covid-19.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.