From ed8d72c06b12d8b74a37e1e5fcac88ea4d31cf09 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 17 Dec 2020 17:31:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E9=97=AE=E9=A2=98?= 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 ab694ae3c..4f346868d 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(is_deleted=False).order_by('type') + components = Terminal.objects.filter(is_deleted=False).order_by('type') if tp: components = components.filter(type=tp) return components