zgdzu
This commit is contained in:
parent
6551cb8c93
commit
20d9319014
2 changed files with 9 additions and 3 deletions
|
@ -887,7 +887,7 @@ def submit_post(v):
|
|||
post_url = upload_video(file)
|
||||
new_post.url = post_url
|
||||
new_post.processing = True
|
||||
gevent.spawn(check_processing_thread, v, new_post, post_url, g.db)
|
||||
gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db)
|
||||
except UploadException as e:
|
||||
if request.headers.get("Authorization"):
|
||||
return {
|
||||
|
@ -909,7 +909,7 @@ def submit_post(v):
|
|||
post_url = upload_video(file)
|
||||
new_post.url = post_url
|
||||
new_post.processing = True
|
||||
gevent.spawn(check_processing_thread, v, new_post, post_url, g.db)
|
||||
gevent.spawn(check_processing_thread, v.id, new_post, post_url, g.db)
|
||||
except UploadException as e:
|
||||
if request.headers.get("Authorization"):
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue