chenjunkai пре 6 година
родитељ
комит
c96d7d2747
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Controller/AdminManage.py

+ 1 - 1
Controller/AdminManage.py

@@ -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})