Skip to content

Commit

Permalink
Merge pull request #123 from m-d-brown/mdbrown-sort-accounts
Browse files Browse the repository at this point in the history
Sort posting accounts in PredictPostings.target
  • Loading branch information
tarioch authored Apr 11, 2023
2 parents 2a60b43 + aff5273 commit 1870790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_importer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PredictPostings(EntryPredictor):
@property
def targets(self):
return [
" ".join(posting.account for posting in txn.postings)
" ".join(sorted(posting.account for posting in txn.postings))
for txn in self.training_data
]

Expand Down

0 comments on commit 1870790

Please sign in to comment.