From f76f9e03dacc1c177c1997c8cf2d78947885ed65 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 23 Jan 2024 15:57:12 +0000 Subject: [PATCH] Add trip country_flags method --- agenda/types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agenda/types.py b/agenda/types.py index a96eff3..37f656e 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -90,6 +90,11 @@ class Trip: [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 class Holiday: