diff --git a/.gitignore b/.gitignore index d39c5ca..c27414f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ logs/*.log *__pycache__* +data/shortcodes.db +data/seq.db +data/sermons.db diff --git a/app.py b/app.py index c43454c..cd04ccd 100644 --- a/app.py +++ b/app.py @@ -134,6 +134,10 @@ def serve_shortcode_js(): def serve_collapsible_js(): return Response(cached.get("js_collapsible"), mimetype='application/javascript') +@app.get("/styles/page.css") +def serve_page_css(): + return send_file("styles/page.css", mimetype='text/css') + def generate_short_id(): remain = random.randrange(614_656, 17_210_367) # resolves to length of 5 chars = "0123456789ACEFHJKLMNPRTUVWXY" @@ -604,7 +608,7 @@ def show(kw=None, get_start_verse_id=False, human_readable=False): if arg_view == "plain": response = "
".join(response_list) elif arg_view == "rich" or human_readable: - response = "
".join(response_list) + response = "".join(response_list) else: response = jsonify(response_list) return response @@ -670,8 +674,8 @@ def scripture_response(scriptures, human_readable=False): ) response.append(cached["css_navbar"]) - response.append("
") + response.append(f"
{len(scriptures)} Results
") for scripture in scriptures: response.append(response_rich(scripture)) response.append("
") @@ -720,7 +724,7 @@ def random_verse(): if arg_view == "plain": response = "
".join(response_list) elif arg_view == "rich": - response = "
".join(response_list) + response = "".join(response_list) else: response = jsonify(response_list) #logging.debug(f"Search Response: {response}") @@ -741,7 +745,7 @@ def verse_of_the_day(): if arg_view == "plain": response = "
".join(response_list) elif arg_view == "rich": - response = "
".join(response_list) + response = "".join(response_list) else: response = jsonify(response_list) #logging.debug(f"Search Response: {response}") @@ -781,7 +785,7 @@ def search(): if arg_view == "plain": response = "
".join(response_list) elif arg_view == "rich": - response = "
".join(response_list) + response = "".join(response_list) else: response = jsonify(response_list) #logging.debug(f"Search Response: {response}") @@ -935,8 +939,10 @@ def sequential_read(start=0, num=1, uid=None, getuid=False): # only look at a small set of the oldest unused entries. seq_conn.commit() arg_view = request.args.get("view", None) - if arg_view == "plain" or arg_view == "rich": + if arg_view == "plain": response = "
".join(response_list) + elif arg_view == "rich": + response = "".join(response_list) else: response = jsonify(response_list) diff --git a/data/seq.db b/data/seq.db deleted file mode 100644 index 948f6b5..0000000 Binary files a/data/seq.db and /dev/null differ diff --git a/data/sermons.db b/data/sermons.db deleted file mode 100644 index 00b8644..0000000 Binary files a/data/sermons.db and /dev/null differ diff --git a/data/shortcodes.db b/data/shortcodes.db deleted file mode 100644 index 9300b55..0000000 Binary files a/data/shortcodes.db and /dev/null differ diff --git a/html/dictionary.html b/html/dictionary.html index 4488aae..6ba6043 100644 --- a/html/dictionary.html +++ b/html/dictionary.html @@ -1,24 +1,27 @@ + + + + + +Bible Dictionary - KJV API + + + + +
+Home | Dictionary | +Random Verse | Verse of the Day +

Bible Dictionary

-
-

- -