forked from 0x2620/pandora
return robots count
This commit is contained in:
parent
494f5cfa0b
commit
82d939e6e3
1 changed files with 2 additions and 1 deletions
|
@ -538,7 +538,8 @@ Positions
|
||||||
else:
|
else:
|
||||||
response['data']['items'] = qs.count()
|
response['data']['items'] = qs.count()
|
||||||
response['data']['users'] = qs.exclude(user=None).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)
|
return render_to_json_response(response)
|
||||||
actions.register(findUsers)
|
actions.register(findUsers)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue