Closed joy32812 closed 6 years ago
`for i in xrange(len(total_project_list)/MAX_REPO_SINGLE_SEARCH+1): repo_list = total_project_list[iMAX_REPO_SINGLE_SEARCH:iMAX_REPO_SINGLE_SEARCH+MAX_REPO_SINGLE_SEARCH]
if len(repo_list) == 0: break repo_string = " repo:" + " repo:".join(repo_list) result.update(_gitprey.sensitive_info_query(repo_string))
`
for example len(total_project_list) = 20 MAX_REPO_SINGLE_SEARCH = 5 then at the end of the loop, repo_list = total_project_list[20,25] which is empty
so you can get unrelated result during the next search
`for i in xrange(len(total_project_list)/MAX_REPO_SINGLE_SEARCH+1): repo_list = total_project_list[iMAX_REPO_SINGLE_SEARCH:iMAX_REPO_SINGLE_SEARCH+MAX_REPO_SINGLE_SEARCH]
Join projects to together to search
`
for example len(total_project_list) = 20 MAX_REPO_SINGLE_SEARCH = 5 then at the end of the loop, repo_list = total_project_list[20,25] which is empty
so you can get unrelated result during the next search