skeleton tests

This commit is contained in:
2023-05-31 00:11:29 -07:00
parent d33d95b6c1
commit a88774fc5b
2 changed files with 52 additions and 3 deletions
+8 -2
View File
@@ -26,6 +26,11 @@ try:
except PermissionError as e:
logging.critical(f"PERMISSIONS FAILURE: {e}")
sanity: bool = False
except Exception as e:
logging.critical(e)
sanity: bool = False
finally:
logging.info(f"Sanity: {sanity}")
app = Flask(__name__, template_folder='html')
@@ -511,11 +516,12 @@ def bible_reader():
# Maybe preliminary theming support
@app.get("/plan")
def reading_plan():
return send_file("html/reading_plan.html")
# needs 2 sets of data, books and time frame.
# should default to the entire Bible in 1 year.
# should start today() and end today()+1year
# Should return a calender with date and verse range.
# Should return reading_plan template.
return render_template("reading_plan.html")
@app.get("/status")
def status():
import resource