Say how many trails a month filter leaves out for having no season on file, with a way to show them

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-19 13:27:01 -07:00
1 parent 92ee879399
commit dea144fd11
4 files changed
+71 -1

No files matched your search

+6 -1
View File
@@ -618,13 +618,18 @@ def results(recs=None, *, finder=False, groups=None, routes_list=False, default_
tools = sort_select(default_sort, saved=saved, ranked=ranked, wholly=wholly)
dflt = SAVED_ORDER[0] if saved else "rank" if ranked else HERE_ORDER if wholly else default_sort
finder_attr = " data-finder" if finder else ""
# Under the count, while a month is chosen: how many trails are left out for having no season on
# file, and a way to see them (app.js fills it in from the rows, the same ones the list is).
unseasoned = ('\n <p class="results-note" data-unseasoned hidden><span data-unseasoned-text></span> '
'<button class="results-note__show" type="button" data-unseasoned-show>Show them</button></p>'
if finder else "")
return Markup(f"""<div class="results"{finder_attr} data-sortable data-default-sort="{esc(dflt)}">
<div class="results-head">
{count}
<div class="results-tools">
{tools}
</div>
</div>
</div>{unseasoned}
{key(official=not only_routes)}
{list_head(default_sort)}{lists}{empty}
</div>""")