fix(core): base_url and queue params were wrong
This commit is contained in:
parent
0d2508c204
commit
aa30f555a4
@ -54,7 +54,7 @@ def transform_data(data):
|
|||||||
def create_tasks_in_tracker(data):
|
def create_tasks_in_tracker(data):
|
||||||
""" Создание задач в ЯндексТрекер """
|
""" Создание задач в ЯндексТрекер """
|
||||||
|
|
||||||
base_url = 'https://tracker.yandex.ru/APPSANDMOBILE'
|
base_url = 'https://tracker.yandex.ru/v2/issues'
|
||||||
headers = {
|
headers = {
|
||||||
'Host': 'https://api.tracker.yandex.net',
|
'Host': 'https://api.tracker.yandex.net',
|
||||||
'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0',
|
'Authorization': 'y0_AgAAAABAmFP8AArTqQAAAADyyFLmOoHqPprnRKag6B8okqjoDx2m9P0',
|
||||||
@ -63,6 +63,7 @@ def create_tasks_in_tracker(data):
|
|||||||
}
|
}
|
||||||
for task in data:
|
for task in data:
|
||||||
payload = {
|
payload = {
|
||||||
|
'queue': 'TESTIMPORT', # Вынести в переменную
|
||||||
'summary': task['summary'],
|
'summary': task['summary'],
|
||||||
'description': task['description'],
|
'description': task['description'],
|
||||||
'createdAt': task['createdAt'],
|
'createdAt': task['createdAt'],
|
||||||
|
Loading…
Reference in New Issue
Block a user