Add location's attributes in Location.str
This commit is contained in:
parent
9494886965
commit
238c841239
1 changed files with 4 additions and 2 deletions
|
@ -85,11 +85,13 @@ class Location:
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return (
|
return (
|
||||||
"============================\n"
|
"============================\n"
|
||||||
"{0.id}: {0.name}\n"
|
"{0.id}: {0.name}"
|
||||||
|
"{1}\n"
|
||||||
"============================\n"
|
"============================\n"
|
||||||
"\n"
|
"\n"
|
||||||
"{1}"
|
"{2}"
|
||||||
).format(
|
).format(
|
||||||
self,
|
self,
|
||||||
|
"".join("\n\t{} {}".format(k, v) for k, v in self.attributes.items()),
|
||||||
"\n".join(map(str, self.dishes))
|
"\n".join(map(str, self.dishes))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue