Switch to using hyperscript to initialise tailwind elements(select) and graphs(Plotly), this removes script tags and ids

This commit is contained in:
Peter Stockings
2023-08-17 20:38:22 +10:00
parent c6c9925da0
commit ec35b78afd
7 changed files with 56 additions and 53 deletions

5
app.py
View File

@@ -439,6 +439,11 @@ def get_first_element_from_list_with_matching_attribute(list, attribute, value):
return None
@app.template_filter('replace_double_quote_strings_with_single_quote')
def replace_double_quote_strings_with_single_quote(str):
return str.replace('"', "'")
@ app.context_processor
def my_utility_processor():