mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-04 09:21:41 -05:00
corrected build errors
This commit is contained in:
@@ -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"]:
|
||||
|
||||
@@ -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 --- #
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user