With specific tag, start the export with the children.

This prevents the specific tag from being included in the results in
the first place, and has the knock-on effect that the descendants'
lines won't all start with the parent tag's name.
This commit is contained in:
voussoir 2020-10-17 18:23:38 -07:00
parent fccd682eac
commit 881ce5e3ae
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ def get_tags_html(specific_tag_name=None):
tags = common.P.get_root_tags()
tag_count = common.P.get_tag_count()
else:
tags = [specific_tag]
tags = specific_tag.get_children()
tag_count = sum(1 for child in specific_tag.walk_children())
tags = common.P.get_cached_tag_export(

View file

@ -159,7 +159,7 @@ h2, h3
<h2>{{tag_count}} Tags</h2>
{% endif %}
<ul id="tag_list">
{% for (qualified_name, tag) in tags if tag != specific_tag %}
{% for (qualified_name, tag) in tags %}
<li>
{{tag_object.tag_object(tag, link="search_musts", innertext="(+)")}}
{{tag_object.tag_object(tag, link="search_forbids", innertext="(x)")}}