Commit ce141a16 authored by Daniel Kullmann's avatar Daniel Kullmann

Tweaks code so that Germany is included in list of countries

parent a304317d
Pipeline #170329257 passed with stage
in 32 seconds
......@@ -88,15 +88,17 @@ for country in data:
rank_new_deaths_per_1m = get_rank(latest_new_per_1m, country, "deaths")
rank_accumulated_deaths_per_1m = get_rank(latest_accumulated_per_1m, country, "deaths")
if (rank_new_cases > 10 and
rank_new_cases_per_1m > 10 and
rank_accumulated_cases > 10 and
rank_accumulated_cases_per_1m > 10 and
rank_new_deaths > 10 and
rank_new_deaths > 10 and
rank_new_deaths_per_1m > 10 and
rank_accumulated_deaths > 10 and
rank_accumulated_deaths_per_1m > 10):
min_rank_to_include_country = 12
if (rank_new_cases > min_rank_to_include_country and
rank_new_cases_per_1m > min_rank_to_include_country and
rank_accumulated_cases > min_rank_to_include_country and
rank_accumulated_cases_per_1m > min_rank_to_include_country and
rank_new_deaths > min_rank_to_include_country and
rank_new_deaths > min_rank_to_include_country and
rank_new_deaths_per_1m > min_rank_to_include_country and
rank_accumulated_deaths > min_rank_to_include_country and
rank_accumulated_deaths_per_1m > min_rank_to_include_country):
continue
all_country_data[country] = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment