mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-20 05:37:43 +00:00
Update the replace command to show responses.
This commit is contained in:
+4
-1
@@ -29,7 +29,10 @@ class BackupPlanRepository(BackupPlanRepositoryPort):
|
||||
|
||||
def update(self, backup_plan: BackupPlan):
|
||||
updated_model = BackupPlanDTO.to_model(backup_plan)
|
||||
model = BackupPlanModel.get_or_none(BackupPlanModel.id == updated_model.id)
|
||||
query = GetBackupPlanByIdQuery(self.databaseManager)
|
||||
|
||||
old_plan = query.execute(backup_plan.id)
|
||||
model = BackupPlanDTO.to_model(old_plan)
|
||||
remove_backup_plan_destinations_command = RemoveBackupPlanDestinationsCommand(self.databaseManager)
|
||||
|
||||
model.label = updated_model.label
|
||||
|
||||
Reference in New Issue
Block a user