From 3f2925116e19d1b9eb1402219a5240a7c1dbecea Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 17 Dec 2020 11:29:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dmetrics=E8=8E=B7?= =?UTF-8?q?=E5=8F=96terminal=E8=BF=87=E6=BB=A4is=5Fdeleted=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/terminal/utils.py b/apps/terminal/utils.py index b480503d5..ab694ae3c 100644 --- a/apps/terminal/utils.py +++ b/apps/terminal/utils.py @@ -109,7 +109,7 @@ class ComponentsMetricsUtil(object): @staticmethod def get_components(tp=None): from .models import Terminal - components = Terminal.objects.all().order_by('type') + components = Terminal.objects.all(is_deleted=False).order_by('type') if tp: components = components.filter(type=tp) return components