Small download fix

This commit is contained in:
Victor Mylle 2023-03-24 17:57:41 +00:00
parent 64a3c174e3
commit 1ac7c7be20

View File

@ -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"