Explorar o código

删除插座日志

guanhailong %!s(int64=2) %!d(string=hai) anos
pai
achega
dafb8f695e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/SensorGateway/GatewayDeviceController.py

+ 1 - 1
Controller/SensorGateway/GatewayDeviceController.py

@@ -178,7 +178,7 @@ class GatewayDeviceView(View):
                             socket_schedule_qs = SocketSchedule.objects.filter(device_id=device_id)
                             if socket_schedule_qs.exists():
                                 socket_schedule_qs.delete()
-                            scene_log_qs = SceneLog.objects.filter(device_id=device_id)
+                            scene_log_qs = SceneLog.objects.filter(device_id=serial_number)
                             if scene_log_qs.exists():
                                 scene_log_qs.delete()