Browse Source

修改查询推送数据

linhaohong 1 năm trước cách đây
mục cha
commit
5929b2da61
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      AdminController/MessageMangementController.py

+ 1 - 1
AdminController/MessageMangementController.py

@@ -116,7 +116,7 @@ class MassageView(View):
 
             # 联表查询
             querysets = []
-            for i in range(1, 21):
+            for i in range(1, 41):
                 table_name = f'EquipmentInfo{i}'
                 model_class = getattr(models, table_name)
                 annotated_queryset = model_class.objects.filter(query)