diff --git a/backend/web_datasets.py b/backend/web_datasets.py index 8f9e9e3..f337c49 100644 --- a/backend/web_datasets.py +++ b/backend/web_datasets.py @@ -286,5 +286,6 @@ def _get_composition_filter_html(m, key, full_key): for k, m in m.comps.items(): html = _get_filter_html(m, key + '-' + k, full_key + '-' + k) # HACK: insert composition name just inside the existing
- html_parts.append('%s%s %s' % (html[:5], comp_name, html[5:])) + prefix, suffix = html.split('>', 1) + html_parts.append('%s%s %s' % (prefix, comp_name, suffix)) return html_parts