From ed6471be61fd1fe69e436636a2aa00eb97a8314f Mon Sep 17 00:00:00 2001 From: Anastasia Gradova Date: Fri, 22 Dec 2023 10:13:18 -0700 Subject: [PATCH] corrected build errors --- app/formatters.py | 3 ++- app/main/views/index.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/formatters.py b/app/formatters.py index 4da95ae5c..da9a4659b 100644 --- a/app/formatters.py +++ b/app/formatters.py @@ -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"]: diff --git a/app/main/views/index.py b/app/main/views/index.py index d768c6f74..97844fe2b 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -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 --- #