Less flags.

Only show flags for international trips to more than one country.
This commit is contained in:
Edward Betts 2025-01-24 20:01:41 +01:00
parent 010f56aabf
commit 340905ecff
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ class Trip:
@functools.cached_property @functools.cached_property
def show_flags(self) -> bool: def show_flags(self) -> bool:
"""Show flags for international trips.""" """Show flags for international trips."""
return len(self.countries) != 1 or self.countries[0].name != "United Kingdom" return len({c for c in self.countries if c.name != "United Kingdom"}) > 1
@property @property
def countries_str(self) -> str: def countries_str(self) -> str:

View file

@ -284,7 +284,7 @@
| Venue: {{ item.venue }} | Venue: {{ item.venue }}
| Location: {{ item.location }} | Location: {{ item.location }}
{% if country %} {% if country %}
{{ country.flag }} {{ flag(trip, country.flag) }}
{% elif item.online %} {% elif item.online %}
💻 Online 💻 Online
{% else %} {% else %}