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:
1 parent
46b27acc9c
commit
b1e3f3fb85
12 files changed
+299
-39
No files matched your search
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user