更新 category.py

This commit is contained in:
jxxghp
2024-05-25 09:28:48 +08:00
committed by GitHub
parent 9b749035c9
commit 9ca8e3f4a8

View File

@ -24,9 +24,6 @@ class CategoryHelper(metaclass=Singleton):
"""
初始化
"""
# 二级分类策略关闭
if not settings.LIBRARY_CATEGORY:
return
try:
if not self._category_path.exists():
shutil.copy(settings.INNER_CONFIG_PATH / "category.yaml", self._category_path)