Skip to content

Commit

Permalink
Use model_dump_json() instead of deprecated json()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 2, 2024
1 parent ab299a3 commit 512f51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/export_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 512f51c

Please sign in to comment.