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

Function get_data

web/pgadmin/preferences/__init__.py:209–221  ·  view source on GitHub ↗

Get preferences data. :return: Preferences list :rtype: list

()

Source from the content-addressed store, hash-verified

207
208
209def get_data():
210 """
211 Get preferences data.
212 :return: Preferences list
213 :rtype: list
214 """
215 pref_data = request.form if request.form else json.loads(
216 request.data.decode())
217
218 if not pref_data:
219 raise ValueError("Please provide the valid preferences data to save.")
220
221 return pref_data
222
223
224@blueprint.route("/", methods=["PUT"], endpoint="update")

Callers 2

saveFunction · 0.70
updateFunction · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected