[FIX] todo upgrade: download_database_backup_cli lives on db_manager

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
This commit is contained in:
Mathieu Benoit 2026-05-20 02:54:29 -04:00
parent fa5039c204
commit d8749422cd

View file

@ -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(