Skip to content

Commit

Permalink
Merge branch 'main' into fix/prompt-studio
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak-Kesavan authored Jul 18, 2024
2 parents d6fa789 + f705ee6 commit 9252e3e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def update_or_create_psr_tool(
obj, created = PromptStudioRegistry.objects.update_or_create(
custom_tool=custom_tool,
created_by=custom_tool.created_by,
modified_by=custom_tool.modified_by,
defaults={
"name": custom_tool.tool_name,
"tool_property": properties.to_dict(),
Expand All @@ -190,7 +189,7 @@ def update_or_create_psr_tool(
logger.info(f"PSR {obj.prompt_registry_id} was created")
else:
logger.info(f"PSR {obj.prompt_registry_id} was updated")

obj.modified_by = custom_tool.modified_by
obj.shared_to_org = shared_with_org
if not shared_with_org:
obj.shared_users.clear()
Expand Down

0 comments on commit 9252e3e

Please sign in to comment.