fixed bugs
Browse files- App/Editor/editorRoutes.py +1 -1
- App/Worker.py +1 -3
App/Editor/editorRoutes.py
CHANGED
@@ -8,7 +8,7 @@ videditor_router = APIRouter(tags=["vidEditor"])
|
|
8 |
|
9 |
@videditor_router.post("/create-video")
|
10 |
async def create_video(videoRequest: EditorRequest):
|
11 |
-
result = celery_task.delay(
|
12 |
return {"task_id": result.task_id}
|
13 |
|
14 |
|
|
|
8 |
|
9 |
@videditor_router.post("/create-video")
|
10 |
async def create_video(videoRequest: EditorRequest):
|
11 |
+
result = celery_task.delay(videoRequest)
|
12 |
return {"task_id": result.task_id}
|
13 |
|
14 |
|
App/Worker.py
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
from celery import Celery, chain
|
2 |
import os, shutil, subprocess
|
3 |
-
import uuid
|
4 |
from urllib.parse import urlparse
|
5 |
-
import time
|
6 |
-
import requests
|
7 |
from App import celery_config, bot
|
8 |
from typing import List
|
9 |
from App.Editor.Schema import EditorRequest, LinkInfo
|
|
|
1 |
from celery import Celery, chain
|
2 |
import os, shutil, subprocess
|
3 |
+
import uuid
|
4 |
from urllib.parse import urlparse
|
|
|
|
|
5 |
from App import celery_config, bot
|
6 |
from typing import List
|
7 |
from App.Editor.Schema import EditorRequest, LinkInfo
|