Skip to content

Commit b3934d0

Browse files
committed
refactor: rename function lib export subfix
--bug=1052638 --user=刘瑞斌 函数库导出后缀名优化 https://www.tapd.cn/57709429/s/1660837
1 parent bd5d129 commit b3934d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/function_lib/serializers/function_lib_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def export(self, with_valid=True):
249249
mk_instance = FlibInstance(application_dict, 'v1')
250250
application_pickle = pickle.dumps(mk_instance)
251251
response = HttpResponse(content_type='text/plain', content=application_pickle)
252-
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.flib"'
252+
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.fx"'
253253
return response
254254
except Exception as e:
255255
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)

ui/src/api/function-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const exportFunctionLib = (
105105
loading?: Ref<boolean>
106106
) => {
107107
return exportFile(
108-
name + '.flib',
108+
name + '.fx',
109109
`${prefix}/${id}/export`,
110110
undefined,
111111
loading

0 commit comments

Comments
 (0)