优化mongodb配置获取逻辑,移动存储基类位置。

This commit is contained in:
yt210
2025-11-07 17:42:28 +08:00
parent ef6948b305
commit b61ec54a72
8 changed files with 40 additions and 85 deletions

View File

@@ -31,7 +31,7 @@ from database.models import ZhihuContent, ZhihuComment, ZhihuCreator
from tools import utils, words
from var import crawler_type_var
from tools.async_file_writer import AsyncFileWriter
from store.mongodb_store_base import MongoDBStoreBase
from database.mongodb_store_base import MongoDBStoreBase
def calculate_number_of_files(file_store_path: str) -> int:
"""计算数据保存文件的前部分排序数字,支持每次运行代码不写到同一个文件中