From 57cce481460efd7c9897c59652b544ef65063837 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 9 Oct 2011 18:18:23 +0200 Subject: updated js/mootools, some parts now coffeescript --- module/web/api_app.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module/web/api_app.py') diff --git a/module/web/api_app.py b/module/web/api_app.py index 61be8b510..25b9f7d3d 100644 --- a/module/web/api_app.py +++ b/module/web/api_app.py @@ -64,6 +64,8 @@ def callApi(func, *args, **kwargs): result = getattr(PYLOAD, func)(*[literal_eval(x) for x in args], **dict([(x, literal_eval(y)) for x, y in kwargs.iteritems()])) + if result is None: result = True + return json.dumps(result, cls=TBaseEncoder) -- cgit v1.2.3