main
Bob Mottram 2020-04-11 14:45:53 +01:00
parent 6933692348
commit 8fdf1908db
1 changed files with 2 additions and 2 deletions

View File

@ -739,7 +739,6 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
"""
path = baseDir + '/accounts/' + nickname + '@' + domain + '/' + boxName
if not os.path.isdir(path):
print('SEARCH: directory does not exist ' + path)
return []
searchStr = searchStr.lower().strip()
@ -747,6 +746,7 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
searchWords = searchStr.split('+')
for index in range(len(searchWords)):
searchWords[index] = searchWords[index].strip()
print('SEARCH: ' + str(searchWords))
else:
searchWords = [searchStr]
@ -761,7 +761,7 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
for keyword in searchWords:
if keyword not in data:
notFound = True
continue
break
if notFound:
continue