Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def patch_organization(self, organization_id, organization) -> Organization:
status_code=404, detail=f"Organization {organization_id} not found"
)

for attr, value in organization.dict().items():
for attr, value in organization.model_dump().items():
if value is not None:
setattr(db_organization, attr, value)
session.commit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def patch_project(self, project_id, project) -> Project:
message=f"Project not found: {project_id}",
)
)
for attr, value in project.dict().items():
for attr, value in project.model_dump().items():
if value is not None:
setattr(db_project, attr, value)
session.commit()
Expand Down
Loading