From c65b4e5d3baaf2046bad848a5e061b267f767458 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Jun 2021 11:17:44 +0200 Subject: [PATCH] Small fix to models --- freqtrade/persistence/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 984b2de27..bbbc55c13 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -437,7 +437,7 @@ class LocalTrade(): self.close(safe_value_fallback(order, 'average', 'price')) else: raise ValueError(f'Unknown order type: {order_type}') - cleanup_db() + Trade.commit() def close(self, rate: float, *, show_msg: bool = True) -> None: """