Stop pages stating false or contradictory things, and fix two phone layout bugs

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-19 10:38:11 -07:00
1 parent 46b27acc9c
commit b1e3f3fb85
12 files changed
+299 -39

No files matched your search

+9
View File
@@ -286,6 +286,15 @@ def gpx(rec):
return "elsewhere"
def gpx_status_text(rec):
"""GPX_STATUS for the trail's page. A route sold only as a book or map set has no GPX to sell, so
it is not "Sold by its author" as a GPX is."""
status = gpx(rec)
if status == "sold" and not common.sells_gpx(rec):
return "Not here, sold as a guide"
return GPX_STATUS[status]
def gpx_here(rec):
return gpx(rec) in ("here", "partial")