home · contact · privacy
Improve explanation of missing data in HTML table view.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:32:20 +0000 (22:32 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:32:20 +0000 (22:32 +0200)
enhance_table.py

index 7410589f98c8b33f0d571121767217819b3fc973..8d0fd335ec2c62e077bb3b34fcd47f10920adb30 100755 (executable)
@@ -163,7 +163,7 @@ table, tr, th, td { border: 1px solid black; }
         long_winc = translate['winc']
         for district in sorted_districts:
             district_data = db[district][date]
-            week_sum = week_avg = week_inc = ''
+            week_sum = week_avg = week_inc = '(not enough data)'
             new_infections = district_data['new_infections']
             if 'week_sum' in district_data:
                 week_sum = '%s' % district_data['week_sum']