清理全部conf穿梭参数

This commit is contained in:
lededev
2021-10-09 19:42:11 +08:00
parent 3873d1aa4c
commit d010ea6d51
3 changed files with 85 additions and 80 deletions

View File

@@ -32,7 +32,7 @@ def get_data_state(data: dict) -> bool: # 元数据获取失败检测
return True
def get_data_from_json(file_number, conf: config.Config): # 从JSON返回元数据
def get_data_from_json(file_number): # 从JSON返回元数据
"""
iterate through all services and fetch the data
"""
@@ -53,6 +53,7 @@ def get_data_from_json(file_number, conf: config.Config): # 从JSON返回元数
"fc2club": fc2club.main
}
conf = config.getInstance()
# default fetch order list, from the beginning to the end
sources = conf.sources().split(',')
if not len(conf.sources()) > 80: