This commit is contained in:
fireworks88 2021-09-06 23:04:01 +02:00
parent 6551cb8c93
commit 20d9319014
2 changed files with 9 additions and 3 deletions

View file

@ -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 {