diff --git a/mapping.py b/mapping.py index bddc2c6..1dc452c 100644 --- a/mapping.py +++ b/mapping.py @@ -65,7 +65,7 @@ def transform_data(data): 'description': task['notes'], 'createdAt': task['created_at'], 'deadline': task['due_on'], - 'assignee': task['assignee'], + # 'assignee': task['assignee'], # 'milestone': task['section'], # 'memberships': task['memberships'], # 'parent': task[''], @@ -87,7 +87,7 @@ def create_tasks_in_tracker(data): 'Content-Type': 'appication/json', } for task in data: - ya_assignee = assignee[task['assignee']['gid']] if task.get('assignee', 0) !=0 else 'dr.cyrill@heado.ru' + ya_assignee = assignee[task['assignee']['gid']] if task.get('assignee', 0) !=0 else 'dr.cyrill' payload = { 'queue': 'TESTIMPORT', # Вынести в переменную 'summary': task['summary'], @@ -113,7 +113,6 @@ def create_tasks_in_tracker(data): 'Ошибка при создании задачи в ЯндексТрекер:', response.content, ) - exit() # asana_data = get_data_from_asana()