Update mock-trade creation to rollback first

This commit is contained in:
Matthias 2022-02-23 19:17:50 +01:00
parent afd2be06d8
commit 731eb99713

View File

@ -201,6 +201,9 @@ def create_mock_trades(fee, use_db: bool = True):
"""
Create some fake trades ...
"""
if use_db:
Trade.query.session.rollback()
def add_trade(trade):
if use_db:
Trade.query.session.add(trade)