mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
perf: check_asset_permission_will_expired filter is_active=True
This commit is contained in:
@@ -65,6 +65,7 @@ def check_asset_permission_will_expired():
|
||||
org_perm_remain_day_mapper = defaultdict(dict)
|
||||
|
||||
asset_perms = AssetPermission.objects.filter(
|
||||
is_active=True,
|
||||
date_expired__gte=start,
|
||||
date_expired__lte=end
|
||||
).distinct()
|
||||
|
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
|
||||
from users.models import User
|
||||
from assets.models import SystemUser
|
||||
|
Reference in New Issue
Block a user