Commit b98669ea by baiquan

优化获取任务

parent a09f0d67
......@@ -220,7 +220,8 @@ async def get_task(params: dict = None):
tasks = []
publish_task_data = publish_task.get('data', [])
collection_task_data = collection_task.get('data', [])
tasks.append(publish_task_data)
if publish_task_data:
tasks.append(publish_task_data)
tasks.extend(collection_task_data)
collection_task['data'] = tasks
return collection_task
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment