fix: 修复metrics获取terminal过滤is_deleted字段

pull/5289/head
Bai 2020-12-17 11:29:09 +08:00 committed by Jiangjie.Bai
parent c3e2e536e0
commit 3f2925116e
1 changed files with 1 additions and 1 deletions

View File

@ -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