Skip to content

Commit

Permalink
Make a hack slightly less brittle
Browse files Browse the repository at this point in the history
  • Loading branch information
perimosocordiae committed Mar 19, 2020
1 parent 078bfed commit 8a997da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/web_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div>
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

0 comments on commit 8a997da

Please sign in to comment.