mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [api] fix add crawler capture return
This commit is contained in:
parent
3642eb5429
commit
1c52c187ad
1 changed files with 3 additions and 1 deletions
|
@ -1791,13 +1791,15 @@ def api_add_crawler_capture(data, user_id):
|
||||||
if not capture_uuid:
|
if not capture_uuid:
|
||||||
return {'error': 'Invalid capture_uuid', 'task_uuid': capture_uuid}, 400
|
return {'error': 'Invalid capture_uuid', 'task_uuid': capture_uuid}, 400
|
||||||
|
|
||||||
|
# parent = data.get('parent')
|
||||||
|
|
||||||
# TODO parent
|
# TODO parent
|
||||||
create_task(task['url'], depth=task['depth_limit'], har=task['har'], screenshot=task['screenshot'],
|
create_task(task['url'], depth=task['depth_limit'], har=task['har'], screenshot=task['screenshot'],
|
||||||
proxy=task['proxy'], tags=task['tags'],
|
proxy=task['proxy'], tags=task['tags'],
|
||||||
parent='AIL_capture', task_uuid=task_uuid, external=True)
|
parent='AIL_capture', task_uuid=task_uuid, external=True)
|
||||||
|
|
||||||
create_capture(capture_uuid, task_uuid)
|
create_capture(capture_uuid, task_uuid)
|
||||||
return capture_uuid, 200
|
return {'uuid': capture_uuid}, 200
|
||||||
|
|
||||||
###################################################################################
|
###################################################################################
|
||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
Loading…
Reference in a new issue