mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 06:26:14 +00:00
fix: [api] fix add crawler task user_org
This commit is contained in:
parent
bc23518713
commit
8cd161568d
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def v1_pyail_version():
|
||||||
def add_crawler_task():
|
def add_crawler_task():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
user_token = get_auth_from_header()
|
user_token = get_auth_from_header()
|
||||||
user_org, user_id, _ = get_basic_user_meta(token)
|
user_org, user_id, _ = ail_api.get_basic_user_meta(user_token)
|
||||||
res = crawlers.api_add_crawler_task(data, user_org, user_id=user_id)
|
res = crawlers.api_add_crawler_task(data, user_org, user_id=user_id)
|
||||||
if res:
|
if res:
|
||||||
return create_json_response(res[0], res[1])
|
return create_json_response(res[0], res[1])
|
||||||
|
|
Loading…
Add table
Reference in a new issue