Explorar o código

delete cout uippush

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
2fee25486c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -570,7 +570,7 @@ def deleteInterface(request):
                 dv_qs.delete()
                 # 删除设备影子信息uid_set   外键关联删除设备推送配置信息 uid_push
                 up_qs = UidPushModel.objects.filter(uid_set__uid=uid)
-                if up_qs.count > 1:
+                if up_qs.count() > 1:
                     UidPushModel.objects.filter(uid_set__uid=uid, userID_id=userID).delete()
                 else:
                     UidSetModel.objects.filter(uid=uid).delete()