MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / save_file_format_setting

Function save_file_format_setting

web/pgadmin/settings/__init__.py:249–261  ·  view source on GitHub ↗

This function save the selected file format.save_file_format_setting :return: save file format response

()

Source from the content-addressed store, hash-verified

247 methods=['POST'])
248@pga_login_required
249def save_file_format_setting():
250 """
251 This function save the selected file format.save_file_format_setting
252 :return: save file format response
253 """
254 data = request.form if request.form else json.loads(
255 request.data.decode('utf-8'))
256 file_type = get_dialog_type(data['allowed_file_types'])
257
258 store_setting(file_type, data['last_selected_format'])
259 return make_json_response(success=True,
260 info=data,
261 result=request.form)
262
263
264@blueprint.route("/get_file_format_setting/",

Callers

nothing calls this directly

Calls 4

make_json_responseFunction · 0.90
get_dialog_typeFunction · 0.85
store_settingFunction · 0.85
decodeMethod · 0.80

Tested by

no test coverage detected