Extra continue

main
Bob Mottram 2020-04-11 14:35:22 +01:00
parent f556c69ea0
commit f2707d43ac
1 changed files with 4 additions and 0 deletions

View File

@ -757,9 +757,13 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
with open(filePath, 'r') as postFile:
data = postFile.read()
notFound = False
for keyword in searchWords:
if keyword not in data:
notFound = True
continue
if notFound:
continue
res.append(filePath)
if len(res) >= maxResults: