From 512f51c843d5313b82a201dd70b404274dd99a2c Mon Sep 17 00:00:00 2001 From: John Davis Date: Tue, 2 Apr 2024 09:37:15 -0400 Subject: [PATCH] Use model_dump_json() instead of deprecated json() --- lib/galaxy/managers/export_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/export_tracker.py b/lib/galaxy/managers/export_tracker.py index d9df1063266d..1f70d9e84265 100644 --- a/lib/galaxy/managers/export_tracker.py +++ b/lib/galaxy/managers/export_tracker.py @@ -44,7 +44,7 @@ def set_export_association_metadata(self, export_association_id: int, export_met export_association: StoreExportAssociation = self.session.execute(stmt).scalars().one() except NoResultFound: raise ObjectNotFound("Cannot set export metadata. Reason: Export association not found") - export_association.export_metadata = export_metadata.json() # type:ignore[assignment] + export_association.export_metadata = export_metadata.model_dump_json() # type:ignore[assignment] with transaction(self.session): self.session.commit()