diff --git a/app/nearby.py b/app/nearby.py index e159c13..2e3bd8b 100644 --- a/app/nearby.py +++ b/app/nearby.py @@ -110,7 +110,11 @@ def card(u): chips = [f'{TYPE_LABEL.get(u["unit_type"], "Scouting")}'] if u["serves"] and u["serves"] in SERVES_LABEL: - tone = "gold" if u["serves"] == "family" else "blue" + # Tone tracks who the unit is OPEN to, not the word it uses. Exploring + # posts and clubs are co-ed by design and have no "family" variant to + # be compared against, so colouring "coed" like a single-gender unit + # would make Club 254 look narrower than Pack 244 when it is not. + tone = "gold" if u["serves"] in ("family", "coed") else "blue" chips.append(f'{SERVES_LABEL[u["serves"]]}') lines = []