few tweaks
This commit is contained in:
parent
0a730ae7f7
commit
ea6e9c198b
@ -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
|
||||||
|
@ -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"])
|
||||||
|
Loading…
Reference in New Issue
Block a user