From 672948ed4d416e87c844cee16324880f30deac32 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Wed, 19 Jun 2024 22:32:08 +0100 Subject: [PATCH] Hide GB from country list unless country Closes: #162 --- agenda/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenda/types.py b/agenda/types.py index 92ea0a5..d86ae3d 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -177,7 +177,8 @@ class Trip: assert country items.append(country) - return items + # Don't include GB in countries visited unless entire trip was GB based + return [c for c in items if c.alpha_2 != "GB"] or items @property def countries_str(self) -> str: