From 078d5207c9a6d7ad4611df311a5e11a635f6f30f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 30 Jun 2020 23:45:33 +0200 Subject: [PATCH] Add explanatory intro to web output. --- enhance_table.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/enhance_table.py b/enhance_table.py index 3860ea6..a626329 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -72,6 +72,33 @@ for i in range(len(sorted_dates)): db[district][date]['week_average'] = week_sum / 7 db[district][date]['week_incidence'] = (week_sum / district_pop) * 100000 +# Explain what this is. +intro = """ +Table of Berlin's Corona infection number development by districts, daily +updated around 9pm. + +Abbrevations/explanations: +CW: Charlottenburg-Wilmersdorf +FK: Friedrichshain-Kreuzberg +Li: Lichtenberg +MH: Marzahn-Hellersdorf +Mi: Mitte +Ne: Neukölln +Pa: Pankow +Re: Reinickendorf +Sp: Spandau +SZ: Steglitz-Zehlendorf +TS: Tempelhof-Schöneberg +TK: Treptow-Köpenick +sum: sum for all the districts +wsum: sum for last 7 days +wavg: per-day average of new infections for last 7 days +winc: incidence (x per 100k inhabitants) of new infections for last 7 days + +Source code: https://plomlompom.com/repos/?p=berlin-corona-table +""" +print(intro) + # Output table of enhanced daily infection data, newest on top, separated into # 7-day units. sorted_dates.reverse() -- 2.30.2