Hide GB from country list unless country

Closes: #162
This commit is contained in:
Edward Betts 2024-06-19 22:32:08 +01:00
parent 2e87d0f120
commit 672948ed4d

View file

@ -177,7 +177,8 @@ class Trip:
assert country assert country
items.append(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 @property
def countries_str(self) -> str: def countries_str(self) -> str: