comparison upload_document/app.py @ 10:2350662483a3

fix minor bugs
author Dennis C. M. <dennis@denniscm.com>
date Thu, 08 Jun 2023 17:16:36 +0100
parents d15ccf5f1373
children d09dee7a86da
comparison
equal deleted inserted replaced
9:bf19235a9636 10:2350662483a3
39 +------------------+------+------+ 39 +------------------+------+------+
40 40
41 The following statement avoids getting `2020` as the value of `ASSETS`. 41 The following statement avoids getting `2020` as the value of `ASSETS`.
42 """ 42 """
43 43
44 account_value = account[dateColumn] 44 try:
45 account_value = account[dateColumn]
46 except KeyError:
47 account_value = ''
48
45 if 'COLUMN_HEADER' in column_types and date == account_value: 49 if 'COLUMN_HEADER' in column_types and date == account_value:
46 account_value = '' 50 account_value = ''
47 51
48 with table.batch_writer() as batch: 52 with table.batch_writer() as batch:
49 53