Small download fix
This commit is contained in:
parent
64a3c174e3
commit
1ac7c7be20
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user