Say season once where a source names season and months
This commit is contained in:
1 parent
b498cf25eb
commit
3305c23ee5
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -1567,7 +1567,7 @@ def hike_sources_block(rec):
|
||||
for src in hike.sources(rec):
|
||||
url = src.get("url", "")
|
||||
who = src.get("publisher") or (host(url) if url else "Source")
|
||||
facts_ = [words.HIKE_FACTS.get(f, f) for f in src.get("facts", [])]
|
||||
facts_ = list(dict.fromkeys(words.HIKE_FACTS.get(f, f) for f in src.get("facts", []))) # season and months read alike
|
||||
what = ("For " + words.join_names(facts_)) if facts_ else ""
|
||||
link = ext_link(url, who) if url else esc(who)
|
||||
detail = " · ".join(x for x in (host(url) if url else "", what) if x)
|
||||
|
||||
Reference in new issue
Block a user