add login

This commit is contained in:
jaehwang committed 2026-09-15 16:00:54 +09:00
1 parent b27a7b528a
commit c4efd6406d
22 files changed
+786 -17

No files matched your search

+4 -3
View File
@@ -33,6 +33,7 @@ from services.split_detail import split_details
from services.tts import synthesize
from services.upscale_poster import as_png_path, upscale_poster
from tables.task import PlayreelTask
from tables.user import UNASSIGNED_USER_ID
from utils import blob
from utils.higgsfield import KLING_3_0
from utils.video import frames_at
@@ -79,10 +80,10 @@ def thumbnail_url(task: PlayreelTask) -> str | None:
return artifact_url(PIPELINE, task.id, THUMBNAIL) if task.video_url else None
async def create_task(session: AsyncSession, url: str, goods_id: str,
slug: str) -> PlayreelTask:
async def create_task(session: AsyncSession, url: str, goods_id: str, slug: str, *,
user_id: str = UNASSIGNED_USER_ID) -> PlayreelTask:
task = PlayreelTask(source_url=url, goods_id=goods_id, slug=slug,
name=f"공연 {goods_id}",
name=f"공연 {goods_id}", user_id=user_id,
stage_timings=initial_timings(PlayreelState))
session.add(task)
await session.commit()