MCPcopy Index your code
hub / github.com/pyload/pyload / save_config

Function save_config

module/web/json_app.py:257–266  ·  view source on GitHub ↗
(category)

Source from the content-addressed store, hash-verified

255@route("/json/save_config/:category", method="POST")
256@login_required("SETTINGS")
257def save_config(category):
258 for key, value in request.POST.iteritems():
259 try:
260 section, option = key.split("|")
261 except:
262 continue
263
264 if category == "general": category = "core"
265
266 PYLOAD.setConfigValue(section, option, decode(value), category)
267
268
269@route("/json/add_account", method="POST")

Callers

nothing calls this directly

Calls 4

decodeFunction · 0.90
splitMethod · 0.80
iteritemsMethod · 0.45
setConfigValueMethod · 0.45

Tested by

no test coverage detected