diff --git a/backend/src/routers/category.py b/backend/src/routers/category.py index 4ca250f..0585969 100755 --- a/backend/src/routers/category.py +++ b/backend/src/routers/category.py @@ -128,10 +128,11 @@ async def download_all(category_id: int, background_tasks: BackgroundTasks, Auth category_signs = c.signs # get all the paths of the sign videos - all_videos = [] + all_videos: list(SignVideo) = [] for sign in category_signs: for video in sign.sign_videos: - all_videos.append(video) + if video.approved: + all_videos.append(video) zip_path = f"/tmp/{datetime.datetime.now().timestamp()}.zip"