瀏覽代碼

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

yf_yzl 2 年之前
父節點
當前提交
2a3a44074a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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({