Changeset - 6b1ce7d73a1a
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 years ago 2022-02-09 01:58:11
ben@sturm.com.au
reconcile: Fix edge case in helper when only one unreconciled transaction.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reconcile/helper.py
Show inline comments
...
 
@@ -19,2 +19,3 @@ from dateutil.relativedelta import relativedelta
 
import datetime
 
import decimal
 
import io
...
 
@@ -177,5 +178,5 @@ for desc, query in QUERIES.items():
 
        print(tabulate(grep_rows), file=grep_output_file)
 
    elif len(rrows) == 1:
 
    elif len(rrows) == 1 and isinstance(rrows[0][0], decimal.Decimal):
 
        result = rrows[0][0]
 
        print(f'{desc:<55} {result:>11,.2f}')
 
        print(f'{desc:<55} {result:11,.2f}')
 
    else:
0 comments (0 inline, 0 general)