add properties for message and inconsistencies
This commit is contained in:
parent
c59d1d2a0d
commit
9c85cf066c
@ -142,6 +142,14 @@ class Participation(object):
|
||||
def name(self):
|
||||
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):
|
||||
if not os.path.exists(PARTICIPANTS_FOLDER):
|
||||
os.mkdir(PARTICIPANTS_FOLDER)
|
||||
|
Loading…
Reference in New Issue
Block a user