Skip to content

Commit 45508b0

Browse files
committed
fix: update file extension from .fx to .tool in export functionality
1 parent f4e15d7 commit 45508b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/tools/serializers/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def export(self):
332332
mk_instance = ToolInstance(tool_dict, 'v2')
333333
tool_pickle = pickle.dumps(mk_instance)
334334
response = HttpResponse(content_type='text/plain', content=tool_pickle)
335-
response['Content-Disposition'] = f'attachment; filename="{tool.name}.fx"'
335+
response['Content-Disposition'] = f'attachment; filename="{tool.name}.tool"'
336336
return response
337337
except Exception as e:
338338
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)

ui/src/api/tool/tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const putToolIcon: (
9999
}
100100

101101
const exportTool = (id: string, name: string, loading?: Ref<boolean>) => {
102-
return exportFile(name + '.fx', `${prefix.value}/${id}/export`, undefined, loading)
102+
return exportFile(name + '.tool', `${prefix.value}/${id}/export`, undefined, loading)
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)