From 22ffd273f1574ef9e314af26a233b4433760d40e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 15 Aug 2019 11:26:43 +0200 Subject: [PATCH] added task_type to data when timer was started --- pype/clockify/clockify.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pype/clockify/clockify.py b/pype/clockify/clockify.py index 788c278c6a..d7b8ccf8a8 100644 --- a/pype/clockify/clockify.py +++ b/pype/clockify/clockify.py @@ -129,10 +129,14 @@ class ClockifyModule: task_name = hierarchy_items[-1] hierarchy = hierarchy_items[:-1] + task_type = None + if len(actual_timer.get("tags", [])) > 0: + task_type = actual_timer["tags"][0].get("name") data = { "task_name": task_name, "hierarchy": hierarchy, - "project_name": project_name + "project_name": project_name, + "task_type": task_type } self.timer_started(data)