|
@@ -149,7 +149,7 @@ class AdminManage(TemplateView):
|
|
|
# 权限固定为30
|
|
|
own_perm = ModelService.check_perm(userID, 30)
|
|
|
if own_perm:
|
|
|
- count = int(Device_Info.objects.all().count())
|
|
|
+ count = int(Device_User.objects.count())
|
|
|
redisObj = RedisObject(db=3)
|
|
|
onlines = int(redisObj.get_size())
|
|
|
return response.json(0, {"onlinenum": onlines, "no_onlinenum": count - onlines})
|