add extension so that break from loop works

This commit is contained in:
2021-03-03 22:04:23 +11:00
parent 8649edfe7c
commit e19e1b57f8

View File

@@ -56,6 +56,7 @@ def ClearJM_Message(id):
####################################### GLOBALS #######################################
# allow jinja2 to call these python functions directly
app.jinja_env.add_extension('jinja2.ext.loopcontrols')
app.jinja_env.globals['ClearStatus'] = st.ClearStatus
app.jinja_env.globals['GetAlert'] = st.GetAlert
app.jinja_env.globals['GetMessage'] = st.GetMessage