From 970d5c5d846e8cc903f3f8e8c2ed59d31d2f6e01 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 6 Oct 2014 12:55:40 +0200 Subject: [PATCH] more api updates --- oxdata/api/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oxdata/api/actions.py b/oxdata/api/actions.py index f80a29f..efca680 100644 --- a/oxdata/api/actions.py +++ b/oxdata/api/actions.py @@ -52,7 +52,7 @@ class ApiActions(dict): properties = {} def __init__(self): - def api(request): + def api(request, data): ''' returns list of all known api actions param data { @@ -76,7 +76,6 @@ class ApiActions(dict): } } ''' - data = json.loads(request.POST.get('data', '{}')) docs = data.get('docs', False) code = data.get('code', False) _actions = self.keys()