Query order history via the db.session

The query then runs in the same transaction as the `db.session`

For that, `addresses_mock` now replaces only `session.query()`
instead of the whole `db.session`.
This commit is contained in:
Alexander Hess 2026-11-30 13:43:38 +01:00
commit e9dbf528d7
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -141,7 +141,7 @@ class OrderHistory:
start_at;
""", # noqa:S608
),
con=db.connection,
con=db.session.connection(),
index_col=["pixel_id", "start_at"],
)