fix: 修复定时检测用户是否活跃任务无法执行的问题

pull/12638/head
ibuler 2024-01-23 17:15:34 +08:00 committed by Bryan
parent 6c9d271ae1
commit 1f1c1a9157
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def check_user_expired_periodic():
@tmp_to_root_org()
def check_unused_users():
uncommon_users_ttl = settings.SECURITY_UNCOMMON_USERS_TTL
if not uncommon_users_ttl or not uncommon_users_ttl.isdigit():
if not uncommon_users_ttl:
return
uncommon_users_ttl = int(uncommon_users_ttl)