From c3a367f40485bcb8dd066462bcc391b07c257970 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Mon, 25 Jan 2021 13:03:01 +0100 Subject: [PATCH] add total vaccinations and update status to country detail page --- country_details.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/country_details.py b/country_details.py index 6475d69..856f990 100644 --- a/country_details.py +++ b/country_details.py @@ -40,6 +40,7 @@ def plot(data, countries, pop, metadata, **kwargs): try: immune_rate = (data[loc]['total_vaccinations'][-1] + data[loc]['total_cases'][-1])/metadata[loc]['population']*100 vac_text += f"Immunrate{immune_rate:1.3f} %" + vac_text += f"Geimpfte{data[loc]['total_vaccinations'][-1]} %" except: pass try: @@ -68,6 +69,8 @@ def plot(data, countries, pop, metadata, **kwargs): Zurück

+Letztes Update: {datetime.datetime.strftime(datetime.datetime.now(), "%Y-%m-%d")}

+

Landesspezifische Kennzahlen

(Stand: {today})