refactor(project): remove useless getattr

This commit is contained in:
MingxuanGame
2025-10-04 06:43:55 +00:00
parent c6058eb0d8
commit ca7c74f709
9 changed files with 24 additions and 29 deletions

View File

@@ -62,8 +62,7 @@ async def refresh_ranking_cache() -> None:
async def schedule_user_cache_preload_task() -> None:
"""定时用户缓存预加载任务"""
enable_user_cache_preload = getattr(settings, "enable_user_cache_preload", True)
if not enable_user_cache_preload:
if not settings.enable_user_cache_preload:
return
try: