Add trip country_flags method
This commit is contained in:
parent
6475692db1
commit
f76f9e03da
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue