X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_free?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=ab6ec46f071ce88484503007d163569759369eb1;hb=ecc9a92512c854244ce9997b4861666460319308;hp=4a060a4b758a654ee5593662cf0f66386e037bf1;hpb=fca28d3ad3def405de5853c253e0ef130eb41fdc;p=berlin-corona-table diff --git a/enhance_table.py b/enhance_table.py index 4a060a4..ab6ec46 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -134,6 +134,7 @@ for i in range(len(sorted_dates)): db[district][date]['week_incidence'] = (week_sum / district_pop) * 100000 # Optimized for web browser viewing. +import calendar if output_type == 'html': print(""" @@ -170,7 +171,8 @@ th { text-align: left; vertical-align: bottom; } (translate[district], district)) print('') print('
%s |
---|