From 52ea12d4cf5745b5988a6e619dfaafdb5bcb3dff 2024-07-18 11:49:08 From: Ben Sturmfels Date: 2024-07-18 11:49:08 Subject: [PATCH] statement_reconciler: switch to generator expression --- diff --git a/conservancy_beancount/reconcile/statement_reconciler.py b/conservancy_beancount/reconcile/statement_reconciler.py index d5e27520ab5609f72b4eb53e163e79ec298cb9c0..67e491ae4c02b73c9454fa96401551d94f22071b 100644 --- a/conservancy_beancount/reconcile/statement_reconciler.py +++ b/conservancy_beancount/reconcile/statement_reconciler.py @@ -834,7 +834,7 @@ def main( 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.