mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
corrected build errors
This commit is contained in:
@@ -29,13 +29,14 @@ def convert_markdown_template(mdf):
|
|||||||
file = 'app/content/' + mdf + '.md'
|
file = 'app/content/' + mdf + '.md'
|
||||||
md_file = os.path.join(APP_ROOT, file)
|
md_file = os.path.join(APP_ROOT, file)
|
||||||
with open(md_file) as f:
|
with open(md_file) as f:
|
||||||
content_text = f.read()
|
content_text = f.read()
|
||||||
|
|
||||||
md_render = markdown.markdown(content_text)
|
md_render = markdown.markdown(content_text)
|
||||||
jn_render = render_template_string(md_render)
|
jn_render = render_template_string(md_render)
|
||||||
|
|
||||||
return jn_render
|
return jn_render
|
||||||
|
|
||||||
|
|
||||||
def convert_to_boolean(value):
|
def convert_to_boolean(value):
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
if value.lower() in ["t", "true", "on", "yes", "1"]:
|
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.utils.user import user_is_logged_in
|
||||||
from app.formatters import convert_markdown_template
|
from app.formatters import convert_markdown_template
|
||||||
|
|
||||||
|
|
||||||
@main.route("/")
|
@main.route("/")
|
||||||
def index():
|
def index():
|
||||||
if current_user and current_user.is_authenticated:
|
if current_user and current_user.is_authenticated:
|
||||||
@@ -325,7 +326,6 @@ def send_files_by_email():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# --- Redirects --- #
|
# --- Redirects --- #
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user