Browse Source

修复app端美丽乡村数据过滤条件

yf_yzl 3 năm trước cách đây
mục cha
commit
2a3a44074a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      smartfarming/views/counts_views.py

+ 1 - 1
smartfarming/views/counts_views.py

@@ -322,7 +322,7 @@ class KeDongOverAPIView(APIView):
     def post(self, request): 
         # 我的信息
         try:
-            country_count = CountryModel.objects.all().count()
+            country_count = CountryModel.objects.filter(is_delete=1).count()
             area = MongoBase.objects.all().first().base_area
             device = MongoDevice.objects.all().count()
             return Response({