浏览代码

optimize:online count

chenjunkai 6 年之前
父节点
当前提交
410f0d6f6f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/AdminManage.py

+ 1 - 1
Controller/AdminManage.py

@@ -147,7 +147,7 @@ class AdminManage(TemplateView):
 
     def getRedisOnline(self, userID, response):
         # 权限固定为30
-        own_perm = ModelService.own_permission(userID, 30)
+        own_perm = ModelService.check_perm(userID, 30)
         if own_perm:
             count = int(Device_Info.objects.count())
             redisObj = RedisObject(db=3)