forked from indymedia/epicyon
debug
parent
6933692348
commit
8fdf1908db
4
utils.py
4
utils.py
|
@ -739,7 +739,6 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
|
||||||
"""
|
"""
|
||||||
path = baseDir + '/accounts/' + nickname + '@' + domain + '/' + boxName
|
path = baseDir + '/accounts/' + nickname + '@' + domain + '/' + boxName
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
print('SEARCH: directory does not exist ' + path)
|
|
||||||
return []
|
return []
|
||||||
searchStr = searchStr.lower().strip()
|
searchStr = searchStr.lower().strip()
|
||||||
|
|
||||||
|
@ -747,6 +746,7 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
|
||||||
searchWords = searchStr.split('+')
|
searchWords = searchStr.split('+')
|
||||||
for index in range(len(searchWords)):
|
for index in range(len(searchWords)):
|
||||||
searchWords[index] = searchWords[index].strip()
|
searchWords[index] = searchWords[index].strip()
|
||||||
|
print('SEARCH: ' + str(searchWords))
|
||||||
else:
|
else:
|
||||||
searchWords = [searchStr]
|
searchWords = [searchStr]
|
||||||
|
|
||||||
|
@ -761,7 +761,7 @@ def searchBoxPosts(baseDir: str, nickname: str, domain: str,
|
||||||
for keyword in searchWords:
|
for keyword in searchWords:
|
||||||
if keyword not in data:
|
if keyword not in data:
|
||||||
notFound = True
|
notFound = True
|
||||||
continue
|
break
|
||||||
if notFound:
|
if notFound:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue