Show an estimated season as an estimate on the trail page, in lists and tables, and in the month filter; say how seasons are sourced and tested on the reference page
This commit is contained in:
1 parent
713fff78df
commit
e95131833b
20 files changed
+481
-103
No files matched your search
+2
-1
@@ -284,7 +284,8 @@ def _properties(rec):
|
||||
props.append(_pv("Shape", facets.SHAPES[shape]))
|
||||
props.append(_pv("Start", h.get("start", "")) if h.get("start") else None)
|
||||
props.append(_pv("End", h.get("end", "")) if h.get("end") else None)
|
||||
props.append(_pv("Usual season", h["season"]) if h.get("season") else None)
|
||||
# Only a season a page states: an estimate is not a fact about the trail to hand to a search engine.
|
||||
props.append(_pv("Usual season", h["season"]) if h.get("season") and not facets.season_estimated(rec) else None)
|
||||
if common.is_route(rec):
|
||||
route = rec.get("route", {})
|
||||
props.append(_pv("Route author", route["creator"]) if route.get("creator") else None)
|
||||
|
||||
Reference in new issue
Block a user