mirror of https://github.com/jumpserver/jumpserver
				
				
				
			perf: check_asset_permission_will_expired filter is_active=True
							parent
							
								
									c619a35a04
								
							
						
					
					
						commit
						e46aa95980
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue