mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
added task_type to data when timer was started
This commit is contained in:
parent
8a8a76aa2e
commit
22ffd273f1
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue