From 0d2508c204384f09269366555513b5fbeccec2c6 Mon Sep 17 00:00:00 2001 From: Angelina Tingaeva Date: Fri, 24 Nov 2023 12:31:40 +0500 Subject: [PATCH] refactor(mapping): correct base urland content type --- mapping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapping.py b/mapping.py index f05c802..0af2933 100644 --- a/mapping.py +++ b/mapping.py @@ -54,12 +54,12 @@ def transform_data(data): def create_tasks_in_tracker(data): """ Создание задач в ЯндексТрекер """ - base_url = 'https://api.tracker.yandex.net/v2/issues' + base_url = 'https://tracker.yandex.ru/APPSANDMOBILE' headers = { 'Host': 'https://api.tracker.yandex.net', 'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', 'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33', - # 'Content-Type': 'asana_data_json', + 'Content-Type': 'Mobile&Apps/APPSANDMOBILE-1/json', } for task in data: payload = {