Add trip country_flags method

This commit is contained in:
Edward Betts 2024-01-23 15:57:12 +00:00
parent 6475692db1
commit f76f9e03da

View file

@ -90,6 +90,11 @@ class Trip:
[f"{c.flag} {c.name}" for c in self.countries] [f"{c.flag} {c.name}" for c in self.countries]
) )
@property
def country_flags(self) -> str:
"""Countries flags for trip."""
return "".join(c.flag for c in self.countries)
@dataclass @dataclass
class Holiday: class Holiday: