diff --git a/bnp_pdf_statement_parser.py b/bnp_pdf_statement_parser.py index ff30069..b7da3fc 100755 --- a/bnp_pdf_statement_parser.py +++ b/bnp_pdf_statement_parser.py @@ -60,6 +60,9 @@ for folder in sorted(os.listdir()): from pprint import pprint #pprint(transactions) +import operator +allTransactions.sort(key = operator.itemgetter('date')) +print(len(allTransactions)) pprint(allTransactions) exit(0)