Browse Source

优化查询系统消息未读数

zhangdongming 11 tháng trước cách đây
mục cha
commit
46a26204b4
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      Controller/SysManage.py

+ 0 - 1
Controller/SysManage.py

@@ -110,7 +110,6 @@ def initMsgFunc(request):
     userID = tko.userID
     seven_days_ago = int(time.time()) - 3600 * 24 * 7  # 过滤七天前数据
     sm_count = SysMsgModel.objects.filter(userID_id=userID, status=0).count()
-    sm_count = SysMsgModel.objects.filter(userID_id=userID, status=0).count()
 
     kwargs = {
         'device_user_id': userID,