Merge pull request #199 from 68cdrBxM8YdoJ/modify-successful-determination
Changed to include numbers in valid data determinate
This commit is contained in:
2
core.py
2
core.py
@@ -81,7 +81,7 @@ def getDataFromJSON(file_number, filepath, failed_folder): # 从JSON返回元
|
||||
for source in sources:
|
||||
json_data = json.loads(func_mapping[source](file_number))
|
||||
# if any service return a valid return, break
|
||||
if getDataState(json_data) != 0:
|
||||
if get_data_state(json_data):
|
||||
break
|
||||
|
||||
# ================================================网站规则添加结束================================================
|
||||
|
||||
Reference in New Issue
Block a user