mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +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)
|
org_perm_remain_day_mapper = defaultdict(dict)
|
||||||
|
|
||||||
asset_perms = AssetPermission.objects.filter(
|
asset_perms = AssetPermission.objects.filter(
|
||||||
|
is_active=True,
|
||||||
date_expired__gte=start,
|
date_expired__gte=start,
|
||||||
date_expired__lte=end
|
date_expired__lte=end
|
||||||
).distinct()
|
).distinct()
|
||||||
|
@@ -1,5 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
|
|
||||||
from users.models import User
|
|
||||||
from assets.models import SystemUser
|
|
||||||
|
Reference in New Issue
Block a user