routes für user erweitert, sodass sich der user in einen bestimmten dienst einschreiben kann.
This commit is contained in:
parent
2ef50fbefd
commit
7bd7acc6bf
|
@ -167,7 +167,11 @@ def _addUser(**kwargs):
|
|||
month = data['month']
|
||||
year = data['year']
|
||||
date = datetime(year, month, day, 12)
|
||||
retVal = mainController.addWorker(user.uid, date, userExc=True)
|
||||
job_kind = None
|
||||
if 'job_kind' in data:
|
||||
job_kind = data['job_kind']
|
||||
mainController.addWorker(user.uid, date, job_kind=job_kind, userExc=True)
|
||||
retVal = mainController.getWorker(date)
|
||||
debug.debug("return {{ {} }}".format(retVal))
|
||||
jobL.info("Mitglied {} {} schreib sich am {} zum Dienst ein.".format(
|
||||
user.firstname, user.lastname, date.date()))
|
||||
|
|
Loading…
Reference in New Issue