benjamin-awd / StatementSensei

PDF to CSV conversion for your bank statements
https://statementsensei.streamlit.app/
GNU Affero General Public License v3.0
63 stars 9 forks source link

feat: DBS consolidated statement #16

Closed bsaurusrex closed 2 months ago

bsaurusrex commented 2 months ago

Traceback:
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)
File "/app/webapp/app.py", line 112, in <module>
    app()
File "/app/webapp/app.py", line 24, in app
    processed_files = process_files(files)
                      ^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/app.py", line 60, in process_files
    processed_file = handle_file(document)
                     ^^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/app.py", line 75, in handle_file
    file = parse_bank_statement(document)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/webapp/helpers.py", line 37, in parse_bank_statement
    statement = pipeline.extract(safety_check=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/monopoly/pipeline.py", line 43, in extract
    statement = self.handler.get_statement()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/monopoly/handler.py", line 47, in get_statement
    raise RuntimeError("Could not create statement object")```
benjamin-awd commented 2 months ago

I've added support upstream for DBS-POSB consolidated statements.

Could you check if the latest release v0.7.2 works for you?