summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/json.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
commitbb5a115533711fd8bb87f53cb32ff7342137208d (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/webui/app/json.py
parentPEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff)
downloadpyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz
Spare code cosmetics (5)
Diffstat (limited to 'pyload/webui/app/json.py')
-rw-r--r--pyload/webui/app/json.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pyload/webui/app/json.py b/pyload/webui/app/json.py
index 51159ddf3..12dce2484 100644
--- a/pyload/webui/app/json.py
+++ b/pyload/webui/app/json.py
@@ -241,7 +241,8 @@ def load_config(category, section):
conf = PYLOAD.getPluginConfigDict()
for key, option in conf[section].iteritems():
- if key in ("desc", "outline"): continue
+ if key in ("desc", "outline"):
+ continue
if ";" in option['type']:
option['list'] = option['type'].split(";")
@@ -282,12 +283,14 @@ def update_accounts():
for name, value in request.POST.iteritems():
value = value.strip()
- if not value: continue
+ if not value:
+ continue
tmp, user = name.split(";")
plugin, action = tmp.split("|")
- if (plugin, user) in deleted: continue
+ if (plugin, user) in deleted:
+ continue
if action == "password":
PYLOAD.updateAccount(plugin, user, value)
@@ -299,6 +302,7 @@ def update_accounts():
deleted.append((plugin,user))
PYLOAD.removeAccount(plugin, user)
+
@route('/json/change_password', method='POST')
def change_password():