From 9891b8332b0170fe80bfd26df54d03ab5cc3d3cd Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 6 Jan 2026 16:10:38 +0100 Subject: [PATCH] chore: set wallet_migration_date in the correct space --- freqtrade/util/migrations/migrate_wallet_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/util/migrations/migrate_wallet_history.py b/freqtrade/util/migrations/migrate_wallet_history.py index 7278c320d..1eb8968eb 100644 --- a/freqtrade/util/migrations/migrate_wallet_history.py +++ b/freqtrade/util/migrations/migrate_wallet_history.py @@ -25,6 +25,7 @@ def migrate_wallet_history(config: Config, exchange: Exchange, starting_balance: _migrate_wallet_history(config, exchange, starting_balance) logger.info("Wallet history migration completed.") KeyValueStore.store_value("wallet_history_migration", 1) + KeyValueStore.store_value("wallet_history_migration_date", dt_now()) def _migrate_wallet_history(config: Config, exchange: Exchange, starting_balance: float): @@ -134,7 +135,6 @@ def _migrate_wallet_history(config: Config, exchange: Exchange, starting_balance # Use bulk_save_objects for better performance WalletHistory.session.bulk_save_objects(wallet_entries) WalletHistory.session.commit() - KeyValueStore.store_value("wallet_history_migration_date", dt_now()) logger.info(f"Successfully created {len(wallet_entries)} wallet balance records") except Exception as e: WalletHistory.session.rollback()