From df60d8eca8a40583f69064ab8f4fa32248f53356 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:36:02 +0100 Subject: [PATCH] Replace deprecated model.dict with model.model_dump --- lib/galaxy/webapps/galaxy/services/history_contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/services/history_contents.py b/lib/galaxy/webapps/galaxy/services/history_contents.py index 8ce9db729e45..962f3f2b9d38 100644 --- a/lib/galaxy/webapps/galaxy/services/history_contents.py +++ b/lib/galaxy/webapps/galaxy/services/history_contents.py @@ -663,7 +663,7 @@ def update_batch( hda_ids.append(item.id) else: hdca_ids.append(item.id) - payload_dict = payload.dict(exclude_unset=True) + payload_dict = payload.model_dump(exclude_unset=True) hdas = self.__datasets_for_update(trans, history, hda_ids, payload_dict) rval = [] for hda in hdas: