Compare commits
2 Commits
45fb0c753c
...
b04a458975
| Author | SHA1 | Date | |
|---|---|---|---|
| b04a458975 | |||
| 2299bd51ba |
@@ -429,7 +429,7 @@ async def update_config_profile(
|
|||||||
if field_name in ("project_id", "tool_type_id"):
|
if field_name in ("project_id", "tool_type_id"):
|
||||||
value = uuid.UUID(value) if value else None
|
value = uuid.UUID(value) if value else None
|
||||||
elif field_name == "mounts" and value is not None:
|
elif field_name == "mounts" and value is not None:
|
||||||
value = [m.model_dump() for m in value]
|
value = [m.model_dump() if not isinstance(m, dict) else m for m in value]
|
||||||
setattr(profile, field_name, value)
|
setattr(profile, field_name, value)
|
||||||
|
|
||||||
await session.commit()
|
await session.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user