mirror of https://github.com/jumpserver/jumpserver
perf: 清理无用代码
parent
00ff1644cb
commit
10fa122e2f
|
@ -17,7 +17,6 @@ from audits.models import UserLoginLog, PasswordChangeLog, OperateLog, FTPLog, J
|
|||
from common.utils import lazyproperty
|
||||
from common.utils.timezone import local_now, local_zero_hour
|
||||
from ops.const import JobStatus
|
||||
from ops.models import JobExecution
|
||||
from orgs.caches import OrgResourceStatisticsCache
|
||||
from orgs.utils import current_org
|
||||
from terminal.models import Session, Command
|
||||
|
@ -130,12 +129,6 @@ class DateTimeMixin:
|
|||
queryset = JobLog.objects.filter(date_created__gte=t)
|
||||
return queryset
|
||||
|
||||
@lazyproperty
|
||||
def jobs_executed_queryset(self):
|
||||
t = self.days_to_datetime
|
||||
queryset = JobExecution.objects.filter(date_created__gte=t)
|
||||
return queryset
|
||||
|
||||
|
||||
class DatesLoginMetricMixin:
|
||||
dates_list: list
|
||||
|
|
Loading…
Reference in New Issue