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
+3
-1
@@ -45,14 +45,16 @@ def time_cell(rec):
|
||||
|
||||
|
||||
def season_cell(rec):
|
||||
return facets.season_text(rec) or "Not on file"
|
||||
return facets.season_text(rec)
|
||||
|
||||
|
||||
def figures_note(recs):
|
||||
"""What the times and climbs of these trails mean, with the caveats the records state."""
|
||||
est = sum(1 for r in recs if facets.time_days(r)[2])
|
||||
unstated = sum(1 for r in recs if facets.season_estimated(r))
|
||||
parts = [f"Times that start with “About” are estimated from the length ({est} of these). "
|
||||
"Otherwise a source states the time.",
|
||||
f"Seasons that start with “About” are estimated from climate ({unstated} of these)." if unstated else "",
|
||||
climb_caveat(recs)]
|
||||
return " ".join(p for p in parts if p)
|
||||
|
||||
|
||||
Reference in new issue
Block a user