From d528153b0fb3cb055934c37411bf3c7c883ad2ef Mon Sep 17 00:00:00 2001 From: Angelina Tingaeva Date: Wed, 29 Nov 2023 11:11:46 +0500 Subject: [PATCH] fix(assignee): change "segavol" to "segavol.dev" --- data/users.mapping.asana2ya.csv | 2 +- mapping.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/users.mapping.asana2ya.csv b/data/users.mapping.asana2ya.csv index 57724b6..38bb725 100644 --- a/data/users.mapping.asana2ya.csv +++ b/data/users.mapping.asana2ya.csv @@ -4,6 +4,6 @@ Diza,2495641457856,irina.ux Никита,547756841476,nikita Cyrill Gafarov,2934206415688,dr.cyrill Илья,1203071663735925,dr.cyrill -Sergey Volodin,1202859655765863,segavol +Sergey Volodin,1202859655765863,segavol.dev Malkova,698025068994499,malkova.content IrinaOs,1204278463134045,irina.ux diff --git a/mapping.py b/mapping.py index f88be69..7647662 100644 --- a/mapping.py +++ b/mapping.py @@ -89,8 +89,8 @@ def create_tasks_in_tracker(data): for task in data: if task.get('assignee') and 'gid' in task['assignee']: ya_assignee = assignee.get(task['assignee']['gid'], 'dr.cyrill') - elif task.get('assignee') == 'segavol': - ya_assignee = 'dr.cyrill' + # elif task.get('assignee') and 'name' == 'segavol' in task['assignee']: + # ya_assignee = assignee.get(task['assignee']['gid'], 'segavol.dev') else: ya_assignee = 'dr.cyrill'