add properties for message and inconsistencies
This commit is contained in:
@@ -142,6 +142,14 @@ class Participation(object):
|
|||||||
def name(self):
|
def name(self):
|
||||||
return "%s %s" % (self._first_name, self._last_name)
|
return "%s %s" % (self._first_name, self._last_name)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def inconsistencies(self):
|
||||||
|
return ", ".join(self._conflicts)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def message(self):
|
||||||
|
return self._message
|
||||||
|
|
||||||
def save_to_csv(self, filename=None):
|
def save_to_csv(self, filename=None):
|
||||||
if not os.path.exists(PARTICIPANTS_FOLDER):
|
if not os.path.exists(PARTICIPANTS_FOLDER):
|
||||||
os.mkdir(PARTICIPANTS_FOLDER)
|
os.mkdir(PARTICIPANTS_FOLDER)
|
||||||
|
|||||||
Reference in New Issue
Block a user