Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared tool export fix #491

Merged
merged 2 commits into from
Jul 18, 2024
Merged
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 @@ -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,
johnyrahul marked this conversation as resolved.
Show resolved Hide resolved
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
chandrasekharan-zipstack marked this conversation as resolved.
Show resolved Hide resolved
obj.shared_to_org = shared_with_org
if not shared_with_org:
obj.shared_users.clear()
Expand Down
Loading