home · contact · privacy
Add explanatory intro to web output.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 30 Jun 2020 21:45:33 +0000 (23:45 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 30 Jun 2020 21:45:33 +0000 (23:45 +0200)
enhance_table.py

index 3860ea61b4cc74409718a59b268689043c787d88..a626329bcd20236477e60b8bd80b93c38274bcaa 100755 (executable)
@@ -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()