Browse Source

修复房间设备排序问题

peng 3 năm trước cách đây
mục cha
commit
33f27edfb8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = ''