summaryrefslogtreecommitdiffstats
path: root/module/web/json_app.py
diff options
context:
space:
mode:
authorGravatar Paul King <devnull@localhost> 2011-05-16 20:40:25 +0200
committerGravatar Paul King <devnull@localhost> 2011-05-16 20:40:25 +0200
commitd94868828e60167b2dbb20f39ea4282fd636844e (patch)
treeaa563f6ee730166853555a8fc9b3735c260d09a6 /module/web/json_app.py
parentSeveral Crypters and Hosters fixes, improvements, python2.5 issues... (diff)
downloadpyload-d94868828e60167b2dbb20f39ea4282fd636844e.tar.xz
fix #165, #277
Diffstat (limited to 'module/web/json_app.py')
-rw-r--r--module/web/json_app.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/web/json_app.py b/module/web/json_app.py
index 7a6baffd8..36ecf22aa 100644
--- a/module/web/json_app.py
+++ b/module/web/json_app.py
@@ -400,6 +400,8 @@ def update_accounts():
PYLOAD.update_account(plugin, user, value)
elif action == "time" and value and "-" in value:
PYLOAD.update_account(plugin, user, options={"time": [value]})
+ elif action == "limitdl" and value and value.isdigit():
+ PYLOAD.update_account(plugin, user, options={"limitDL": [value]})
elif action == "delete" and value:
PYLOAD.remove_account(plugin, user)
@@ -463,4 +465,4 @@ def make_dir():
return {"response": "success", "path": path, "name": name}
except:
- return HTTPError() \ No newline at end of file
+ return HTTPError()