Skip to content

Commit

Permalink
rfct: Fix lint failures
Browse files Browse the repository at this point in the history
Added some missing whitespace.
  • Loading branch information
John McCann committed Feb 21, 2024
1 parent f5b54b6 commit 5249d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion beancount_reds_plugins/zerosum/test_zerosum.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def test_single_rename(self, entries, _, options_map):
for (m, p) in ref:
self.assertEqual('Assets:ZSA-Matched:Returns-and-Temporary',
matched[m].postings[p].account)
self.assertTrue('match_id' not in matched[m].postings[p].meta)

@loader.load_doc()
def test_above_tolerance(self, entries, _, options_map):
Expand Down
6 changes: 3 additions & 3 deletions beancount_reds_plugins/zerosum/zerosum.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
DEBUG = 0
DEFAULT_TOLERANCE = 0.0099
MATCHING_ID_STRING = "match_id"
random.seed(6) # arbitrary fixed seed
random.seed(6) # arbitrary fixed seed

__plugins__ = ('zerosum', 'flag_unmatched',)

Expand Down Expand Up @@ -297,9 +297,9 @@ def generate_match_id():
match_count += 1
match_id = generate_match_id() if match_metadata else None
account_replace(txn, posting, target_account,
match_id=match_id)
match_id)
account_replace(match[1], match[0], target_account,
match_id=match_id)
match_id)
new_accounts.add(target_account)
reprocess = True
break
Expand Down

0 comments on commit 5249d94

Please sign in to comment.