Browse Source

修改查询推送数据

linhaohong 1 year ago
parent
commit
4cb8adcc37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AdminController/MessageMangementController.py

+ 1 - 1
AdminController/MessageMangementController.py

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