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:
parent
6119064d71
commit
e9dbf528d7
1 changed files with 3 additions and 3 deletions
|
|
@ -141,7 +141,7 @@ class OrderHistory:
|
|||
start_at;
|
||||
""", # noqa:S608
|
||||
),
|
||||
con=db.connection,
|
||||
con=db.session.connection(),
|
||||
index_col=["pixel_id", "start_at"],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue