From b87f55fbd75df75c53b84541107afd053733cd54 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Wed, 22 Jul 2020 14:47:53 -0400 Subject: [PATCH] Exposes date in TaskEvent endpoint --- crc/models/task_event.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crc/models/task_event.py b/crc/models/task_event.py index e3914468..c696bc26 100644 --- a/crc/models/task_event.py +++ b/crc/models/task_event.py @@ -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