From 59a1f0f0e70d763cf6df92e3ad6d198d497d4aa9 Mon Sep 17 00:00:00 2001 From: Nikolay Kitanov Date: Fri, 15 May 2020 16:29:04 +0300 Subject: [PATCH 1/4] Add population in wordometers data --- covid/worldometers/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/covid/worldometers/models.py b/covid/worldometers/models.py index 96900e3..a5be468 100644 --- a/covid/worldometers/models.py +++ b/covid/worldometers/models.py @@ -27,3 +27,4 @@ class CovidModel(BaseModel): total_deaths_per_million: Decimal = Field( Decimal(0), alias="Deaths/1M pop" ) + population: Decimal = Field(Decimal(0), alias = "Population") From 57c87d49a13f5bef6aec882c928dfd3370fd7661 Mon Sep 17 00:00:00 2001 From: ahmednafies Date: Fri, 15 May 2020 22:38:15 +0200 Subject: [PATCH 2/4] add .vim --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7ca7329..0c6a0fa 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ __pycache__ .env .mypy_cache .venv +.vim From 1301b0417311210dcc7ecfa8d4c38a2eea6a539c Mon Sep 17 00:00:00 2001 From: ahmednafies Date: Fri, 15 May 2020 22:38:53 +0200 Subject: [PATCH 3/4] new release --- covid/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/covid/__init__.py b/covid/__init__.py index e8c79c9..cc132b0 100644 --- a/covid/__init__.py +++ b/covid/__init__.py @@ -6,7 +6,7 @@ __author__ = "Ahmed Nafies Okasha Mohamed " __copyright__ = "Copyright 2020, Ahmed Nafies Okasha Mohamed" __license__ = "MIT" -__version__ = "2.2.9" +__version__ = "2.2.10" def Covid(source=config.JOHN_HOPKINS): From b48af015c10a605655aecfab195326b200c19e33 Mon Sep 17 00:00:00 2001 From: ahmednafies Date: Fri, 15 May 2020 22:39:46 +0200 Subject: [PATCH 4/4] adds population field to test --- tests/test_worldometer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_worldometer.py b/tests/test_worldometer.py index 09f5c7f..8593de5 100644 --- a/tests/test_worldometer.py +++ b/tests/test_worldometer.py @@ -24,6 +24,7 @@ def test_all_data(): assert "total_tests_per_million" in element assert "total_cases_per_million" in element assert "total_deaths_per_million" in element + assert "population" in element def test_get_by_country_name(): @@ -41,6 +42,7 @@ def test_get_by_country_name(): assert "total_tests_per_million" in data assert "total_cases_per_million" in data assert "total_deaths_per_million" in data + assert "population" in data assert data["country"] == "Sweden"