diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2016-11-13 15:40:09 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2016-11-13 15:40:09 +0200 |
commit | e3a36793330e6b705c2abb3519908c9cfc2bb9a4 (patch) | |
tree | 3f51b55f64e0c902241e172260f1bde5a32f00c4 | |
parent | cfed90c1096a92c4c9e622dfe2d55d892595b2ff (diff) |
entities/person: stringify fields before print
-rwxr-xr-x | entities/person.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/entities/person.py b/entities/person.py index 46ed315..63f014f 100755 --- a/entities/person.py +++ b/entities/person.py @@ -68,8 +68,8 @@ class Person(BasicEntity): def print_entity(self): print("Name = " + self.name) - print("Birth year = " + self.date_of_birth) - print("Death year = " + self.date_of_death) + print("Birth year = " + str(self.date_of_birth)) + print("Death year = " + str(self.date_of_death)) print("Names in langs = " + str(self.name_in_langs)) print("Bio Data = " + json.dumps(self.bio_data)) print("Comments = " + json.dumps(self.comments_list)) |