From b55010b86eeb295895fc03cff5cbd41948e845ee Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 26 Mar 2020 11:30:09 +0100 Subject: [PATCH] Update. --- covid19.py | 1 + 1 file changed, 1 insertion(+) diff --git a/covid19.py b/covid19.py index 78c81ed..3d80907 100755 --- a/covid19.py +++ b/covid19.py @@ -43,6 +43,7 @@ with open(nbcases_filename, newline='') as csvfile: if not country in nb_cases: nb_cases[country] = numpy.zeros(len(times)) elif col_nb >= time_col: + if field == '': field = '0' nb_cases[country][col_nb - time_col] += int(field) countries = list(nb_cases.keys()) -- 2.39.5