skeleton tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user