Explorar o código

修复房间设备排序问题

peng %!s(int64=3) %!d(string=hai) anos
pai
achega
33f27edfb8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/SensorGateway/GatewayFamilyRoomController.py

+ 1 - 1
Controller/SensorGateway/GatewayFamilyRoomController.py

@@ -209,7 +209,7 @@ class GatewayFamilyRoomView(View):
         device_not_room_qs = device_not_room_qs.filter(~Q(room_id=room_id)).values('room_id', 'device_id',
                                                                                    'device__Type', 'device__NickName',
                                                                                    'sub_device').order_by('sort',
-                                                                                                        '-created_time')
+                                                                                                          '-device__data_joined')
         if device_not_room_qs.exists():
             for item in device_not_room_qs:
                 name = ''