From 881ce5e3ae8dd6f8ac6c909904efe87b516363a8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 17 Oct 2020 18:23:38 -0700 Subject: [PATCH] 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. --- frontends/etiquette_flask/backend/endpoints/tag_endpoints.py | 2 +- frontends/etiquette_flask/templates/tags.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py index 8d31d9c..477cb0a 100644 --- a/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/tag_endpoints.py @@ -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( diff --git a/frontends/etiquette_flask/templates/tags.html b/frontends/etiquette_flask/templates/tags.html index b78a1cf..fbdb910 100644 --- a/frontends/etiquette_flask/templates/tags.html +++ b/frontends/etiquette_flask/templates/tags.html @@ -159,7 +159,7 @@ h2, h3

{{tag_count}} Tags

{% endif %}