Set active tag selection

This commit is contained in:
Leigh Morresi
2021-01-30 12:26:22 +01:00
parent 3eaccfe5da
commit a8ae9d54aa
3 changed files with 16 additions and 7 deletions

View File

@@ -99,7 +99,11 @@ def main_page():
sorted_watches.sort(key=lambda x: x['last_changed'], reverse=True)
existing_tags = datastore.get_all_tags()
output = render_template("watch-overview.html", watches=sorted_watches, messages=messages, tags=existing_tags)
output = render_template("watch-overview.html",
watches=sorted_watches,
messages=messages,
tags=existing_tags,
active_tag=limit_tag)
# Show messages but once.
messages = []