From 82d939e6e3dd35a04525a4d3a1eca7570391764b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Mar 2012 16:34:33 +0200 Subject: [PATCH] return robots count --- pandora/user/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index c104ecf52..f56baa453 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -538,7 +538,8 @@ Positions else: response['data']['items'] = qs.count() response['data']['users'] = qs.exclude(user=None).count() - response['data']['guests'] = response['data']['items'] - response['data']['users'] + response['data']['robots'] = qs.filter(level=-1).count() + response['data']['guests'] = qs.filter(level=0).count() return render_to_json_response(response) actions.register(findUsers)