def get_data(data, fname):
    with open(fname, newline='') as csvfile:
        content = csv.reader(csvfile, delimiter=',', quotechar='"')
        for line in content:
            if (len(line) < 5):
                continue
            try:
                ts = convert_ts(line[2])
                adm = [line[1]]
                if (line[0] != ''):
                    adm.append(line[0])
                data.append({'date': ts, 'adm': adm, 'infected': int(line[3]), 'deaths': int(line[4]), 'recovered': int(line[5]), 'sex': 'NaN', 'source': ObjectId('5e75f8d7745bde4a48972b42')})
            except ValueError as ve:
                pass
def get_data(data, fname):
    with open(fname, newline=) as csvfile:
        content = csv.reader(csvfile, delimiter=',', quotechar='"')
        for line in content:
            if (len(line) < 5):
                continue
            try:
                ts = convert_ts(line[2])
                adm = [line[1]]
                if (line[0] != ):
                    adm.append(line[0])
                data.append({'date': ts, 'adm': adm, 'infected': int(line[3]), 'deaths': int(line[4]), 'recovered': int(line[5]), 'sex': 'NaN', 'source': ObjectId('5e75f8d7745bde4a48972b42')})
            except ValueError as ve:
                pass