fixed /show multiple references
This commit is contained in:
@@ -13,7 +13,6 @@ To-do:
|
|||||||
Styles
|
Styles
|
||||||
Bible Reading Plan
|
Bible Reading Plan
|
||||||
Bible Viewer
|
Bible Viewer
|
||||||
fix Multiple Reference resolving /show
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def dbg(message):
|
def dbg(message):
|
||||||
@@ -196,7 +195,11 @@ def show():
|
|||||||
if ref is None:
|
if ref is None:
|
||||||
return send_file("html/show.html")
|
return send_file("html/show.html")
|
||||||
dbg("show({})".format(ref))
|
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:
|
if not ref:
|
||||||
return("Invalid Query")
|
return("Invalid Query")
|
||||||
verse_results = []
|
verse_results = []
|
||||||
|
|||||||
@@ -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 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>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>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>
|
||||||
|
|||||||
Reference in New Issue
Block a user