Commit dffd4566 authored by Daniel Kullmann's avatar Daniel Kullmann

population data key changed

parent fbcc5c42
......@@ -40,13 +40,13 @@ def load_corona_data() -> Tuple[CountriesDataType, Set[str], Set[datetime.date],
for key, value in row.items():
try:
parsed = float(value)
if not math.isnan(parsed) and key != "popData2018":
if not math.isnan(parsed) and key != "popData2019":
data[country][date][key] = parsed
except ValueError:
pass
if row["popData2018"] != "":
if row["popData2019"] != "":
population_data[country] = {
"population": float(row["popData2018"]),
"population": float(row["popData2019"]),
"long_name": row["countriesAndTerritories"],
"continent": row["continentExp"]
}
......
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