refactor(mapping): correct base urland content type

This commit is contained in:
Angelina Tingaeva 2023-11-24 12:31:40 +05:00
parent 4ca5ee7f27
commit 0d2508c204

View File

@ -54,12 +54,12 @@ def transform_data(data):
def create_tasks_in_tracker(data): def create_tasks_in_tracker(data):
""" Создание задач в ЯндексТрекер """ """ Создание задач в ЯндексТрекер """
base_url = 'https://api.tracker.yandex.net/v2/issues' base_url = 'https://tracker.yandex.ru/APPSANDMOBILE'
headers = { headers = {
'Host': 'https://api.tracker.yandex.net', 'Host': 'https://api.tracker.yandex.net',
'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0', 'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0',
'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33', 'X-Org-ID': '35d164dcf81e48f2b6a532f4badddd33',
# 'Content-Type': 'asana_data_json', 'Content-Type': 'Mobile&Apps/APPSANDMOBILE-1/json',
} }
for task in data: for task in data:
payload = { payload = {