mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: update file extension from .fx to .tool in export functionality
This commit is contained in:
parent
f4e15d76a0
commit
45508b08a3
|
|
@ -332,7 +332,7 @@ class ToolSerializer(serializers.Serializer):
|
|||
mk_instance = ToolInstance(tool_dict, 'v2')
|
||||
tool_pickle = pickle.dumps(mk_instance)
|
||||
response = HttpResponse(content_type='text/plain', content=tool_pickle)
|
||||
response['Content-Disposition'] = f'attachment; filename="{tool.name}.fx"'
|
||||
response['Content-Disposition'] = f'attachment; filename="{tool.name}.tool"'
|
||||
return response
|
||||
except Exception as e:
|
||||
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ const putToolIcon: (
|
|||
}
|
||||
|
||||
const exportTool = (id: string, name: string, loading?: Ref<boolean>) => {
|
||||
return exportFile(name + '.fx', `${prefix.value}/${id}/export`, undefined, loading)
|
||||
return exportFile(name + '.tool', `${prefix.value}/${id}/export`, undefined, loading)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue