You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The list of importable files on /beancount/import/ is sorted by file name. I find it much more useful if they are sorted by date and then by account name.
I added the following code to the function def import_data(self) -> list[FileImporters] in ingest.py just before the return to sort them.
# Sort ret by the date and account attribute of infos[0] if it existsret=sorted(
ret,
key=lambdax: (
x.importers[0].dateisNone,
x.importers[0].date,
x.importers[0].account
) ifx.importerselse (True, None, None)
)
The text was updated successfully, but these errors were encountered:
The list of importable files on
/beancount/import/
is sorted by file name. I find it much more useful if they are sorted by date and then by account name.I added the following code to the function
def import_data(self) -> list[FileImporters]
iningest.py
just before the return to sort them.The text was updated successfully, but these errors were encountered: