feat: 添加项目配置文件和日志文件以支持新模块的设置
This commit is contained in:
parent
81412f52fc
commit
50a7b283e0
2
main.py
2
main.py
@ -16,12 +16,12 @@ from threading import Lock
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
from logger import logger
|
||||
|
||||
|
||||
db = DBVidcon()
|
||||
MACHINE_ID = None
|
||||
MAX_WORKERS = 10
|
||||
executor = ThreadPoolExecutor(max_workers=MAX_WORKERS)
|
||||
|
||||
|
||||
def get_part_ids(part_num: int, take: int, offset: int = 0):
|
||||
part_ids = list(range(offset, offset + take))
|
||||
if max(part_ids) >= part_num:
|
||||
|
Loading…
x
Reference in New Issue
Block a user