diff options
| author | 2015-04-18 00:29:55 +0200 | |
|---|---|---|
| committer | 2015-04-18 00:29:55 +0200 | |
| commit | bb5a115533711fd8bb87f53cb32ff7342137208d (patch) | |
| tree | 476600f9896fae029880e4049eb4c5e6021b202d /pyload/webui/app/api.py | |
| parent | PEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff) | |
| download | pyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz | |
Spare code cosmetics (5)
Diffstat (limited to 'pyload/webui/app/api.py')
| -rw-r--r-- | pyload/webui/app/api.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/pyload/webui/app/api.py b/pyload/webui/app/api.py index 16e8c2447..0e36b7c1f 100644 --- a/pyload/webui/app/api.py +++ b/pyload/webui/app/api.py @@ -17,6 +17,7 @@ from pyload.api import BaseObject  # json encoder that accepts TBase objects  class TBaseEncoder(json.JSONEncoder): +      def default(self, o):          if isinstance(o, BaseObject):              return toDict(o) @@ -24,7 +25,6 @@ class TBaseEncoder(json.JSONEncoder):  # accepting positional arguments, as well as kwargs via post and get -  @route('/api/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{},]*>')  @route('/api/<func><args:re:[a-zA-Z0-9\-_/\"\'\[\]%{},]*>', method='POST')  def call_api(func, args=""): | 
