We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c72c4d commit 4df72b0Copy full SHA for 4df72b0
src/mavedb/routers/score_sets.py
@@ -735,7 +735,8 @@ async def update_score_set_calibration_data(
735
736
assert_permission(user_data, item, Action.UPDATE)
737
738
- item.score_calibrations = calibration_update
+ # Convert underlying validated pydantic model objects to their dictionary representation.
739
+ item.score_calibrations = {k: v.dict() for k, v in calibration_update.items()} # type: ignore
740
db.add(item)
741
db.commit()
742
db.refresh(item)
0 commit comments