fixing warning on comparisons

This commit is contained in:
divious1
2020-11-09 11:10:10 -05:00
parent b1db736eb2
commit f8fc4fa95d
+2 -2
View File
@@ -279,9 +279,9 @@ def generate_workbench_panels(response_tasks, stories, TEMPLATE_PATH, OUTPUT_PAT
template = j2_env.get_template('panel.j2')
file_path = "default/data/ui/panels/workbench_panel_" + response_file_name + ".xml"
output_path = path.join(OUTPUT_PATH, file_path)
if response_task['search'].find(">") is not -1:
if response_task['search'].find(">") != -1:
response_task['search']= response_task['search'].replace(">",">")
if response_task['search'].find("<") is not -1:
if response_task['search'].find("<") != -1:
response_task['search']= response_task['search'].replace("<","&lt;")
output = template.render(search=response_task['search'])