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 = []
+1
View File
@@ -15,3 +15,4 @@
<p>You can try to search a Bible reference in this box, such as "1 John 5:7".</p>
<p>You can use abbreviations, but you may not get the result you are looking for.</p>
<p>Use a dash for the verse to get the entire chapter, eg. "John 3:-"<p>
<p>You may return multiple verse groups by using a comma, eg. "John3:16,2Peter2:1"</p>