fix: 修改系统监控问题

pull/5293/head
Bai 4 years ago committed by Jiangjie.Bai
parent 4f5f92deb8
commit ed8d72c06b

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

Loading…
Cancel
Save