Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/function_lib/serializers/function_lib_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def export(self, with_valid=True):
mk_instance = FlibInstance(application_dict, 'v1')
application_pickle = pickle.dumps(mk_instance)
response = HttpResponse(content_type='text/plain', content=application_pickle)
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.flib"'
response['Content-Disposition'] = f'attachment; filename="{function_lib.name}.fx"'
return response
except Exception as e:
return result.error(str(e), response_status=status.HTTP_500_INTERNAL_SERVER_ERROR)
Expand Down
2 changes: 1 addition & 1 deletion ui/src/api/function-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const exportFunctionLib = (
loading?: Ref<boolean>
) => {
return exportFile(
name + '.flib',
name + '.fx',
`${prefix}/${id}/export`,
undefined,
loading
Expand Down
Loading