Exposes date in TaskEvent endpoint

This commit is contained in:
Aaron Louie 2020-07-22 14:47:53 -04:00
parent 60f907f852
commit b87f55fbd7
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ class TaskEvent(object):
self.task_type = model.task_type
self.task_state = model.task_state
self.task_lane = model.task_lane
self.date = model.date
class TaskEventSchema(ma.Schema):
@ -59,5 +60,5 @@ class TaskEventSchema(ma.Schema):
class Meta:
model = TaskEvent
additional = ["id", "user_uid", "action", "task_id", "task_title",
"task_name", "task_type", "task_state", "task_lane"]
"task_name", "task_type", "task_state", "task_lane", "date"]
unknown = INCLUDE