rogerxavier
commited on
Commit
•
1d3689e
1
Parent(s):
702b29f
Update api.py
Browse files
api.py
CHANGED
@@ -117,7 +117,7 @@ async def execute_all_task(background_tasks: BackgroundTasks, bili_meta_data,fil
|
|
117 |
background_tasks.add_task(process_tasks_and_upload, file_list, bili_meta_data, cover_image, cover_path,allow_submit,background_tasks)
|
118 |
return {"message": "提交成功"}
|
119 |
|
120 |
-
def process_tasks_and_upload(file_list, bili_meta_data, cover_image, cover_path,allow_submit,background_tasks):
|
121 |
|
122 |
tasks = []
|
123 |
for file_name in file_list:
|
|
|
117 |
background_tasks.add_task(process_tasks_and_upload, file_list, bili_meta_data, cover_image, cover_path,allow_submit,background_tasks)
|
118 |
return {"message": "提交成功"}
|
119 |
|
120 |
+
async def process_tasks_and_upload(file_list, bili_meta_data, cover_image, cover_path,allow_submit,background_tasks):
|
121 |
|
122 |
tasks = []
|
123 |
for file_name in file_list:
|