fix: 授权过期天数修改 (#8618)

Co-authored-by: feng626 <1304903146@qq.com>
pull/8620/head
fit2bot 2022-07-19 11:15:56 +08:00 committed by GitHub
parent 0eab83f73b
commit 585ddeb25b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ def check_asset_permission_will_expired():
for asset_perm in asset_perms:
date_expired = dt_parser(asset_perm.date_expired)
remain_days = (end - date_expired).days
remain_days = (date_expired - start).days
org = asset_perm.org
# 资产授权按照组织分类
@ -121,7 +121,7 @@ def check_app_permission_will_expired():
for app_perm in app_perms:
date_expired = dt_parser(app_perm.date_expired)
remain_days = (end - date_expired).days
remain_days = (date_expired - start).days
org = app_perm.org
if org in org_perm_remain_day_mapper[remain_days]: