Merge pull request #5293 from jumpserver/dev

fix: 修改系统监控问题
pull/5310/head
Jiangjie.Bai 2020-12-17 17:36:06 +08:00 committed by GitHub
commit 52d20080ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(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