bvanelli / actualpy

Python API implementation for Actual server - reference https://actualbudget.org/
20 stars 4 forks source link

Sync looses changes if a session flush is executed #15

Closed bvanelli closed 3 months ago

bvanelli commented 4 months ago

If a session.flush() is executed we loose the dirty state of the session and therefore the changelog used for the sync.

We should track the changes how sqlalchemy suggests: https://docs.sqlalchemy.org/en/20/orm/session_state_management.html#session-referencing-behavior