Small download fix
This commit is contained in:
@@ -128,10 +128,11 @@ async def download_all(category_id: int, background_tasks: BackgroundTasks, Auth
|
|||||||
category_signs = c.signs
|
category_signs = c.signs
|
||||||
|
|
||||||
# get all the paths of the sign videos
|
# get all the paths of the sign videos
|
||||||
all_videos = []
|
all_videos: list(SignVideo) = []
|
||||||
for sign in category_signs:
|
for sign in category_signs:
|
||||||
for video in sign.sign_videos:
|
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"
|
zip_path = f"/tmp/{datetime.datetime.now().timestamp()}.zip"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user