提交 3f292511 编写于 作者: B Bai 提交者: Jiangjie.Bai

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

上级 c3e2e536
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册