fixed /show multiple references

This commit is contained in:
2023-01-14 19:15:22 -08:00
parent e54456928e
commit d604bfdbb9
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -13,7 +13,6 @@ To-do:
Styles
Bible Reading Plan
Bible Viewer
fix Multiple Reference resolving /show
"""
def dbg(message):
@@ -196,7 +195,11 @@ def show():
if ref is None:
return send_file("html/show.html")
dbg("show({})".format(ref))
ref = ref_input_cleaning(ref)
refs = []
for r in ref.split(','):
r_ = ref_input_cleaning(r)
if r_:
refs.append(r_)
if not ref:
return("Invalid Query")
verse_results = []