corrected build errors

This commit is contained in:
Anastasia Gradova
2023-12-22 10:13:18 -07:00
parent 0989246334
commit ed6471be61
2 changed files with 3 additions and 2 deletions

View File

@@ -29,13 +29,14 @@ def convert_markdown_template(mdf):
file = 'app/content/' + mdf + '.md'
md_file = os.path.join(APP_ROOT, file)
with open(md_file) as f:
content_text = f.read()
content_text = f.read()
md_render = markdown.markdown(content_text)
jn_render = render_template_string(md_render)
return jn_render
def convert_to_boolean(value):
if isinstance(value, str):
if value.lower() in ["t", "true", "on", "yes", "1"]:

View File

@@ -18,6 +18,7 @@ from app.main.views.sub_navigation_dictionaries import features_nav, using_notif
from app.utils.user import user_is_logged_in
from app.formatters import convert_markdown_template
@main.route("/")
def index():
if current_user and current_user.is_authenticated:
@@ -325,7 +326,6 @@ def send_files_by_email():
)
# --- Redirects --- #