From: Christian Heller Date: Tue, 30 Jun 2020 21:45:33 +0000 (+0200) Subject: Add explanatory intro to web output. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/process?a=commitdiff_plain;h=078d5207c9a6d7ad4611df311a5e11a635f6f30f;p=berlin-corona-table Add explanatory intro to web output. --- 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()