Changeset - 52ea12d4cf57
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 months ago 2024-07-18 11:49:08
ben@sturm.com.au
statement_reconciler: switch to generator expression
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reconcile/statement_reconciler.py
Show inline comments
...
 
@@ -825,25 +825,25 @@ def main(
 
        META("lineno") AS line,
 
        META("bank-statement") AS bank_statement,
 
        date,
 
        number(cost(position)),
 
        payee,
 
        ENTRY_META("entity") as entity,
 
        ANY_META("check-id") as check_id,
 
        narration
 
        WHERE account = "{args.account}"
 
            AND date >= {begin_date}
 
            AND date <= {end_date}"""
 
    _, result_rows = run_query(entries, options, query)
 
    books_trans = sort_records([standardize_beancount_record(row) for row in result_rows])
 
    books_trans = sort_records(standardize_beancount_record(row) for row in result_rows)
 

	
 
    # Apply two passes of matching, one for standard matches and one
 
    # for subset matches.
 
    (
 
        matches,
 
        remaining_statement_trans,
 
        remaining_books_trans,
 
    ) = match_statement_and_books(statement_trans, books_trans)
 
    subset_matches, remaining_statement_trans, remaining_books_trans = subset_match(
 
        remaining_statement_trans, remaining_books_trans
 
    )
 
    matches.extend(subset_matches)
0 comments (0 inline, 0 general)