From e3a36793330e6b705c2abb3519908c9cfc2bb9a4 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 13 Nov 2016 15:40:09 +0200 Subject: entities/person: stringify fields before print --- entities/person.py | 4 ++-- 1 file 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)) -- cgit v1.2.3