This commit is contained in:
Marek Lenczewski
2026-04-06 20:01:19 +02:00
parent 8ecef00d0a
commit 2f37d1b31f
4 changed files with 41 additions and 17 deletions

View File

@@ -26,8 +26,7 @@ async def create_videos(videos_data: list[VideoCreate], db: Session = Depends(ge
video_service.delete_by_youtube_id(db, video_id_match)
video = video_service.create_video(db, video_data)
created_ids.append(video.id)
if video_data.profile_id:
profile_ids.add(video_data.profile_id)
profile_ids.add(video_data.profile_id or 1)
videos = [video_service.get_video(db, vid) for vid in created_ids]
if profile_ids: