few tweaks

This commit is contained in:
Daniel 2024-10-01 02:59:18 -05:00
parent 0a730ae7f7
commit ea6e9c198b
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ def exists(r):
def parse(): def parse():
global inserted, big, index_num global inserted, big, index_num
print("entering parse()") print("Parsing manifest json...")
# for every document in the export # for every document in the export
for document in manifest: for document in manifest:
#if the title and content tags aren't blank #if the title and content tags aren't blank

View File

@ -19,7 +19,7 @@ def menu():
if value == "reload": if value == "reload":
extract.parse() extract.parse()
value = prompt() value = prompt()
while value != "quit" or value != "reload": while value != "quit" and value != "reload":
results = search.query(value) results = search.query(value)
if type(results) == dict: if type(results) == dict:
print(results["content"]) print(results["content"])