From 1ac7c7be2041302a4365718c3fe9ff2fefbda824 Mon Sep 17 00:00:00 2001 From: Victor Mylle Date: Fri, 24 Mar 2023 17:57:41 +0000 Subject: [PATCH] Small download fix --- backend/src/routers/category.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"