From 5cd87277d532987f56b4acba58f6db6618b02387 Mon Sep 17 00:00:00 2001 From: vapao Date: Thu, 27 Feb 2020 21:18:10 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E5=8F=B0=E7=BB=9F=E8=AE=A1=E4=B8=BB=E6=9C=BA=E6=95=B0=E9=87=8F?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_api/apps/home/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spug_api/apps/home/views.py b/spug_api/apps/home/views.py index 0d8dbbc..24564db 100644 --- a/spug_api/apps/home/views.py +++ b/spug_api/apps/home/views.py @@ -16,7 +16,7 @@ import json def get_statistic(request): data = { 'app': App.objects.count(), - 'host': Host.objects.count(), + 'host': Host.objects.filter(deleted_at__isnull=True).count(), 'task': Task.objects.count(), 'detection': Detection.objects.count() }