chenshibin 4 лет назад
Родитель
Сommit
aa460de46b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Controller/DeviceShare.py

+ 1 - 1
Controller/DeviceShare.py

@@ -253,7 +253,7 @@ class DeviceShareView(View):
             try:
                 # redisObj = RedisObject(db=8)
                 # redisObj.del_data(key='uid_qs_' + userID)
-                Device_Info.objects.filter(id__in=ids, primaryUserID=userID).update(isExist=0)
+                Device_Info.objects.filter(id__in=list(ids), primaryUserID=userID).update(isExist=0)
             except Exception as e:
                 return response.json(10, repr(e))
             else: