From 1c52c187adcc56cebfd9877b56099bd518eac6a5 Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 8 Dec 2023 10:37:58 +0100 Subject: [PATCH] fix: [api] fix add crawler capture return --- bin/lib/crawlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lib/crawlers.py b/bin/lib/crawlers.py index d256daee..101c8a33 100755 --- a/bin/lib/crawlers.py +++ b/bin/lib/crawlers.py @@ -1791,13 +1791,15 @@ def api_add_crawler_capture(data, user_id): if not capture_uuid: return {'error': 'Invalid capture_uuid', 'task_uuid': capture_uuid}, 400 + # parent = data.get('parent') + # TODO parent create_task(task['url'], depth=task['depth_limit'], har=task['har'], screenshot=task['screenshot'], proxy=task['proxy'], tags=task['tags'], parent='AIL_capture', task_uuid=task_uuid, external=True) create_capture(capture_uuid, task_uuid) - return capture_uuid, 200 + return {'uuid': capture_uuid}, 200 ################################################################################### ###################################################################################