From d8749422cd82e40e365b2f2fd3ce852024dbaef5 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 20 May 2026 02:54:29 -0400 Subject: [PATCH] [FIX] todo upgrade: download_database_backup_cli lives on db_manager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Choosing « remote » as the migration source raised AttributeError: the method had moved to DatabaseManager, and todo_upgrade still called it on the TODO object. The remote path was therefore unusable — the only way to start a migration from a production backup rather than a local zip. --- FR --- Choisir « remote » comme source de migration levait une AttributeError : la méthode avait été déplacée vers DatabaseManager, et todo_upgrade l'appelait toujours sur l'objet TODO. Le chemin distant était donc inutilisable — le seul moyen de démarrer une migration depuis une sauvegarde de production plutôt que depuis un zip local. Assisted-by: Claude Opus 5 --- script/todo/todo_upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/todo/todo_upgrade.py b/script/todo/todo_upgrade.py index a83f199..b06a78c 100755 --- a/script/todo/todo_upgrade.py +++ b/script/todo/todo_upgrade.py @@ -511,7 +511,7 @@ class TodoUpgrade: file_browser.run_main_frame() elif self.file_path == "remote": status, self.file_path, default_database_name = ( - self.todo.download_database_backup_cli() + self.todo.db_manager.download_database_backup_cli() ) if status: _logger.error(